summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2017-07-06 15:27:23 -0700
committer John Reck <jreck@google.com> 2017-07-06 23:01:39 +0000
commitabbedfc84ff28ba2d47c110c9322f2c4133411e7 (patch)
tree8e761355ab9d1adfdbce0f99371299498db6a736
parentd9e57599d11f07e7c094c57e97b4d5fb8ee75e92 (diff)
Add missing notifyPixelsChanged
Fixes: 63400947 Test: CTS test PixelCopyTest#testReuseBitmap Change-Id: Iad6fe331f84415528c1858a1fdbf26bce784cd53
-rw-r--r--libs/hwui/OpenGLReadback.cpp1
-rw-r--r--libs/hwui/pipeline/skia/SkiaOpenGLReadback.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLReadback.cpp b/libs/hwui/OpenGLReadback.cpp
index 19d5d9d2250e..e798edfc095a 100644
--- a/libs/hwui/OpenGLReadback.cpp
+++ b/libs/hwui/OpenGLReadback.cpp
@@ -238,6 +238,7 @@ inline CopyResult copyTextureInto(Caches& caches, RenderState& renderState,
// TODO: We should convert to linear space when the target is RGBA16F
glReadPixels(0, 0, bitmap->width(), bitmap->height(), format,
type, bitmap->getPixels());
+ bitmap->notifyPixelsChanged();
}
// Cleanup
diff --git a/libs/hwui/pipeline/skia/SkiaOpenGLReadback.cpp b/libs/hwui/pipeline/skia/SkiaOpenGLReadback.cpp
index 89697d7445c6..e865b57aa800 100644
--- a/libs/hwui/pipeline/skia/SkiaOpenGLReadback.cpp
+++ b/libs/hwui/pipeline/skia/SkiaOpenGLReadback.cpp
@@ -97,6 +97,7 @@ CopyResult SkiaOpenGLReadback::copyImageInto(EGLImageKHR eglImage, const Matrix4
image = scaledSurface->makeImageSnapshot();
if (image->readPixels(bitmap->info(), bitmap->getPixels(), bitmap->rowBytes(), 0, 0)) {
+ bitmap->notifyPixelsChanged();
copyResult = CopyResult::Success;
}
}