summaryrefslogtreecommitdiffstats
path: root/tests/RenderScriptTests
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2011-04-27 12:08:59 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-04-27 12:08:59 -0700
commit998d4570bd0abdfdcbb29b18c700b10d07db17a9 (patch)
tree53a82c54c9c8648d88d994c768fc838c104a91ce /tests/RenderScriptTests
parentd45d463095d1dedaa2d4686739200c69e1e45637 (diff)
parent9dc8b3652d3b4a6406186b93b51057840b7ea697 (diff)
downloadframeworks_base-998d4570bd0abdfdcbb29b18c700b10d07db17a9.zip
frameworks_base-998d4570bd0abdfdcbb29b18c700b10d07db17a9.tar.gz
frameworks_base-998d4570bd0abdfdcbb29b18c700b10d07db17a9.tar.bz2
Merge "Better workaround for the bitmap invalidation problem."
Diffstat (limited to 'tests/RenderScriptTests')
-rw-r--r--tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/ImageProcessingActivity.java3
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 7462701..e776463 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();
}
};