diff options
author | Tim Murray <timmurray@google.com> | 2012-12-18 14:09:38 -0800 |
---|---|---|
committer | Tim Murray <timmurray@google.com> | 2012-12-18 14:21:39 -0800 |
commit | 2c1dc9a0e95bc55b622f67c6ca82d78521d89824 (patch) | |
tree | 287a4a12a2225e1b2c6437725ffaae954c7c8c5f /tests | |
parent | 1c07ab358801997306bb467e1ab1af4d5c3ad815 (diff) | |
download | frameworks_base-2c1dc9a0e95bc55b622f67c6ca82d78521d89824.zip frameworks_base-2c1dc9a0e95bc55b622f67c6ca82d78521d89824.tar.gz frameworks_base-2c1dc9a0e95bc55b622f67c6ca82d78521d89824.tar.bz2 |
Switch to simpler createFromBitmap in ImageProcessing.
Change-Id: I61034689ed83b6536abc034e21c39adac2cdf553
Diffstat (limited to 'tests')
-rw-r--r-- | tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/TestBase.java | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/TestBase.java b/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/TestBase.java index abe2e83..b5df38d 100644 --- a/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/TestBase.java +++ b/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/TestBase.java @@ -111,15 +111,11 @@ public class TestBase { mRS = RenderScript.create(act); mRS.setMessageHandler(new MessageProcessor(act)); mMessageScript = new ScriptC_msg(mRS); - mInPixelsAllocation = Allocation.createFromBitmap(mRS, b, - Allocation.MipmapControl.MIPMAP_NONE, - Allocation.USAGE_SCRIPT); - mInPixelsAllocation2 = Allocation.createFromBitmap(mRS, b2, - Allocation.MipmapControl.MIPMAP_NONE, - Allocation.USAGE_SCRIPT); - mOutPixelsAllocation = Allocation.createFromBitmap(mRS, outb, - Allocation.MipmapControl.MIPMAP_NONE, - Allocation.USAGE_SCRIPT); + + mInPixelsAllocation = Allocation.createFromBitmap(mRS, b); + mInPixelsAllocation2 = Allocation.createFromBitmap(mRS, b2); + mOutPixelsAllocation = Allocation.createFromBitmap(mRS, outb); + createTest(act.getResources()); } |