Index: src/gpu/gl/GrGLGpu.cpp |
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp |
index 6accc59f9d82e358bd9368db7bb0f4d50fd1b67a..b4e7df03aed0ae4abd0b7c2df65aeb42fbc04ed8 100644 |
--- a/src/gpu/gl/GrGLGpu.cpp |
+++ b/src/gpu/gl/GrGLGpu.cpp |
@@ -840,6 +840,11 @@ bool GrGLGpu::onWritePixels(GrSurface* surface, |
left, top, width, height, config, texels); |
} |
+ if (success) { |
+ SkIRect rect = SkIRect::MakeXYWH(left, top, width, height); |
+ this->didWriteToSurface(surface, &rect); |
+ } |
+ |
return success; |
} |
@@ -876,7 +881,8 @@ bool GrGLGpu::onTransferPixels(GrSurface* surface, |
success = this->uploadTexData(glTex->desc(), glTex->target(), kTransfer_UploadType, |
left, top, width, height, config, texels); |
if (success) { |
- glTex->texturePriv().dirtyMipMaps(true); |
+ SkIRect rect = SkIRect::MakeXYWH(left, top, width, height); |
+ this->didWriteToSurface(surface, &rect); |
return true; |
} |