diff options
| author | 2011-04-26 17:19:41 -0700 | |
|---|---|---|
| committer | 2011-04-26 17:19:41 -0700 | |
| commit | 9dc8b3652d3b4a6406186b93b51057840b7ea697 (patch) | |
| tree | 45b249fef4dea2fe619c59cc029e921e6d7d475d /tests/RenderScriptTests/ImageProcessing | |
| parent | 2d039219adbeaad1a481267bca021b1a8645b481 (diff) | |
Better workaround for the bitmap invalidation problem.
Change-Id: I9aa5ff9f68413ec36596d976a2e65b8ef272d56e
Diffstat (limited to 'tests/RenderScriptTests/ImageProcessing')
| -rw-r--r-- | tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java b/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java index 74627018e405..e77646397f9e 100644 --- a/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java +++ b/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java @@ -88,9 +88,8 @@ public class ImageProcessingActivity extends Activity } // This is a hack to work around an invalidation bug - mBitmapOut = Bitmap.createBitmap(mBitmapOut); + mBitmapOut.setPixel(0, 0, 0); mOutPixelsAllocation.copyTo(mBitmapOut); - mDisplayView.setImageBitmap(mBitmapOut); mDisplayView.invalidate(); } }; |