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

Commit e78fb2c6 authored by Tim Murray's avatar Tim Murray Committed by Android (Google) Code Review
Browse files

Merge "Switch to simpler createFromBitmap in ImageProcessing."

parents e422737f 2c1dc9a0
Loading
Loading
Loading
Loading
+5 −9
Original line number Diff line number Diff line
@@ -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());
    }