am ed3ffe0f: am 6430812a: Merge "RenderScript: implement a Script entry point for calling a reduce-style kernel."

* commit 'ed3ffe0fc86de016ff2b4231e2fcc74a6119f6c7':
  RenderScript: implement a Script entry point for calling a reduce-style kernel.
This commit is contained in:
Stephen Hines
2015-07-23 22:54:59 +00:00
committed by Android Git Automerger
3 changed files with 93 additions and 1 deletions

View File

@@ -30,6 +30,8 @@ import android.os.SystemProperties;
import android.os.Trace;
import java.util.ArrayList;
// TODO: Clean up the whitespace that separates methods in this class.
/**
* This class provides access to a RenderScript context, which controls RenderScript
* initialization, resource management, and teardown. An instance of the RenderScript
@@ -741,6 +743,14 @@ public class RenderScript {
rsnScriptForEach(mContext, id, slot, ains, aout, params, limits);
}
native void rsnScriptReduce(long con, long id, int slot, long ain,
long aout, int[] limits);
synchronized void nScriptReduce(long id, int slot, long ain, long aout,
int[] limits) {
validate();
rsnScriptReduce(mContext, id, slot, ain, aout, limits);
}
native void rsnScriptInvokeV(long con, long id, int slot, byte[] params);
synchronized void nScriptInvokeV(long id, int slot, byte[] params) {
validate();