From 2c1dc9a0e95bc55b622f67c6ca82d78521d89824 Mon Sep 17 00:00:00 2001 From: Tim Murray Date: Tue, 18 Dec 2012 14:09:38 -0800 Subject: Switch to simpler createFromBitmap in ImageProcessing. Change-Id: I61034689ed83b6536abc034e21c39adac2cdf553 --- .../ImageProcessing/src/com/android/rs/image/TestBase.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'tests') 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()); } -- cgit v1.1