Fix RS samples to prepare for 64-bit compilation.
Bug: 16031597
Change-Id: I8f79773e4d5219d3c8dc4696176cd42f8236c87b
(cherry picked from commit d8295c9e49)
This commit is contained in:
@@ -62,7 +62,7 @@ public class HelloCompute extends Activity {
|
|||||||
Allocation.MipmapControl.MIPMAP_NONE,
|
Allocation.MipmapControl.MIPMAP_NONE,
|
||||||
Allocation.USAGE_SCRIPT);
|
Allocation.USAGE_SCRIPT);
|
||||||
|
|
||||||
mScript = new ScriptC_mono(mRS, getResources(), R.raw.mono);
|
mScript = new ScriptC_mono(mRS);
|
||||||
|
|
||||||
mScript.forEach_root(mInAllocation, mOutAllocation);
|
mScript.forEach_root(mInAllocation, mOutAllocation);
|
||||||
mOutAllocation.copyTo(mBitmapOut);
|
mOutAllocation.copyTo(mBitmapOut);
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ public class LevelsRSActivity extends Activity
|
|||||||
Allocation.USAGE_IO_OUTPUT);
|
Allocation.USAGE_IO_OUTPUT);
|
||||||
mDisplayView.setSurfaceTextureListener(this);
|
mDisplayView.setSurfaceTextureListener(this);
|
||||||
|
|
||||||
mScript = new ScriptC_levels(mRS, getResources(), R.raw.levels);
|
mScript = new ScriptC_levels(mRS);
|
||||||
mScript.set_gamma(mGamma);
|
mScript.set_gamma(mGamma);
|
||||||
|
|
||||||
setSaturation();
|
setSaturation();
|
||||||
|
|||||||
Reference in New Issue
Block a user