Start seperating out RS compute implementation. Create hal

layer to seperate from runtime.

Change-Id: Idf5c1261be4131690d25c15948e98324e979b4f9
This commit is contained in:
Jason Sams
2011-03-16 16:29:28 -07:00
parent ce06ebfda4
commit e4a06c5fc7
21 changed files with 1286 additions and 826 deletions

View File

@ -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);