Start seperating out RS compute implementation. Create hal
layer to seperate from runtime. Change-Id: Idf5c1261be4131690d25c15948e98324e979b4f9
This commit is contained in:
@ -457,20 +457,11 @@ public class RenderScript {
|
||||
rsnScriptSetVarObj(mContext, id, slot, val);
|
||||
}
|
||||
|
||||
native void rsnScriptCBegin(int con);
|
||||
synchronized void nScriptCBegin() {
|
||||
native int rsnScriptCCreate(int con, String resName, String cacheDir,
|
||||
byte[] script, int length);
|
||||
synchronized int nScriptCCreate(String resName, String cacheDir, byte[] script, int length) {
|
||||
validate();
|
||||
rsnScriptCBegin(mContext);
|
||||
}
|
||||
native void rsnScriptCSetScript(int con, byte[] script, int offset, int length);
|
||||
synchronized void nScriptCSetScript(byte[] script, int offset, int length) {
|
||||
validate();
|
||||
rsnScriptCSetScript(mContext, script, offset, length);
|
||||
}
|
||||
native int rsnScriptCCreate(int con, String packageName, String resName, String cacheDir);
|
||||
synchronized int nScriptCCreate(String packageName, String resName, String cacheDir) {
|
||||
validate();
|
||||
return rsnScriptCCreate(mContext, packageName, resName, cacheDir);
|
||||
return rsnScriptCCreate(mContext, resName, cacheDir, script, length);
|
||||
}
|
||||
|
||||
native void rsnSamplerBegin(int con);
|
||||
|
Reference in New Issue
Block a user