Add name to ScriptGroup2.Builder.create() method

This name will be used to name the .so file generated for the
script group with fused kernels.

Change-Id: I46e351c8412740512f56b7915b14f36183c6eeaf
This commit is contained in:
Yang Ni
2015-04-02 17:47:56 -07:00
parent 3afca74a2a
commit 35be56cce8
3 changed files with 15 additions and 9 deletions

View File

@ -332,10 +332,12 @@ public class RenderScript {
rsnClosureSetGlobal(mContext, closureID, fieldID, value, size);
}
native long rsnScriptGroup2Create(long con, String cachePath, long[] closures);
synchronized long nScriptGroup2Create(String cachePath, long[] closures) {
native long rsnScriptGroup2Create(long con, String name, String cachePath,
long[] closures);
synchronized long nScriptGroup2Create(String name, String cachePath,
long[] closures) {
validate();
return rsnScriptGroup2Create(mContext, cachePath, closures);
return rsnScriptGroup2Create(mContext, name, cachePath, closures);
}
native void rsnScriptGroup2Execute(long con, long groupID);