Begin adding async allocation creation.

Change-Id: I5d1381699e2b334c1d824f357bd6b310a5f79be8

Implement async bitmap upload and clean up types.

Change-Id: Icbe9894e04c1319351c1cd75b0e0017855198f20
This commit is contained in:
Jason Sams
2010-10-26 13:09:17 -07:00
parent cd44bf9c7a
commit 31a7e42f4b
14 changed files with 122 additions and 214 deletions

View File

@@ -112,12 +112,10 @@ public class Script extends BaseObj {
public static class FieldBase {
protected Element mElement;
protected Type mType;
protected Allocation mAllocation;
protected void init(RenderScript rs, int dimx) {
mAllocation = Allocation.createSized(rs, mElement, dimx);
mType = mAllocation.getType();
}
protected FieldBase() {
@@ -128,7 +126,7 @@ public class Script extends BaseObj {
}
public Type getType() {
return mType;
return mAllocation.getType();
}
public Allocation getAllocation() {
@@ -138,19 +136,6 @@ public class Script extends BaseObj {
//@Override
public void updateAllocation() {
}
//
/*
public class ScriptField_UserField
extends android.renderscript.Script.FieldBase {
protected
}
*/
}
}