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

Commit 2c38bfe3 authored by Alex Sakhartchouk's avatar Alex Sakhartchouk Committed by Android (Google) Code Review
Browse files

Merge "Fixing bitmap invalidation bug."

parents d3bb7893 835b8544
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -504,6 +504,7 @@ nAllocationCopyToBitmap(JNIEnv *_env, jobject _this, RsContext con, jint alloc,
    void* ptr = bitmap.getPixels();
    rsAllocationCopyToBitmap(con, (RsAllocation)alloc, ptr, bitmap.getSize());
    bitmap.unlockPixels();
    bitmap.notifyPixelsChanged();
}

static void ReleaseBitmapCallback(void *bmp)
+0 −2
Original line number Diff line number Diff line
@@ -87,8 +87,6 @@ public class ImageProcessingActivity extends Activity
                    mIsProcessing = false;
                }

                // This is a hack to work around an invalidation bug
                mBitmapOut.setPixel(0, 0, 0);
                mOutPixelsAllocation.copyTo(mBitmapOut);
                mDisplayView.invalidate();
            }