Chromium Code Reviews| Index: src/gpu/GrContext.cpp |
| diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
| index 64f4cb3deca237649047db0ababf9954813ca01e..0039d9e6e012ffdb65a718cc5491e139f8d2909b 100755 |
| --- a/src/gpu/GrContext.cpp |
| +++ b/src/gpu/GrContext.cpp |
| @@ -324,7 +324,8 @@ bool GrContext::writeSurfacePixels(GrSurface* surface, |
| { |
| GrTexture* texture = NULL; |
| if (!(kUnpremul_PixelOpsFlag & pixelOpsFlags) && (texture = surface->asTexture()) && |
| - fGpu->canWriteTexturePixels(texture, srcConfig)) { |
| + fGpu->canWriteTexturePixels(texture, srcConfig) && |
| + !fCaps->useDrawInsteadOfPartialTextureWrite()) { |
|
bsalomon
2015/06/18 16:53:52
check that it is partial (note that the rect is kn
|
| if (!(kDontFlush_PixelOpsFlag & pixelOpsFlags) && |
| surface->surfacePriv().hasPendingIO()) { |