From 3b47713b26859f83c0cf7adede8e8090097673ad Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Wed, 14 Jan 2015 16:52:20 -0800 Subject: [PATCH] Update generationId on bitmaps when decoded into by BitmapRegionDecoder bug:18921087 This fixes issues where bitmaps are cached as textures, and not reuploaded when reused by BitmapRegionDecoder, showing stale content. Change-Id: I7626fd6acd36d8e38723689734855ce9154eb8c8 --- core/jni/android/graphics/BitmapRegionDecoder.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/jni/android/graphics/BitmapRegionDecoder.cpp b/core/jni/android/graphics/BitmapRegionDecoder.cpp index 91efc8ca0da07..66332610c849d 100644 --- a/core/jni/android/graphics/BitmapRegionDecoder.cpp +++ b/core/jni/android/graphics/BitmapRegionDecoder.cpp @@ -242,6 +242,7 @@ static jobject nativeDecodeRegion(JNIEnv* env, jobject, jlong brdHandle, } if (tileBitmap != NULL) { + bitmap->notifyPixelsChanged(); return tileBitmap; }