Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abbedfc8 authored by John Reck's avatar John Reck
Browse files

Add missing notifyPixelsChanged

Fixes: 63400947
Test: CTS test PixelCopyTest#testReuseBitmap
Change-Id: Iad6fe331f84415528c1858a1fdbf26bce784cd53
parent d9e57599
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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
+1 −0
Original line number Diff line number Diff line
@@ -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;
            }
        }