Unhiding J API's for Renderscript.

Change-Id: I8c2d43ccca94549bc6ca1a914106567ccc125503
This commit is contained in:
Alex Sakhartchouk
2012-04-11 14:04:23 -07:00
parent 5713c9cfa9
commit 918e840628
12 changed files with 141 additions and 112 deletions

View File

@@ -204,7 +204,7 @@ public class ProgramVertexFixedFunction extends ProgramVertex {
public Constants(RenderScript rs) {
Type constInputType = ProgramVertexFixedFunction.Builder.getConstantInputType(rs);
mAlloc = Allocation.createTyped(rs, constInputType);
int bufferSize = constInputType.getElement().getSizeBytes()*
int bufferSize = constInputType.getElement().getBytesSize()*
constInputType.getCount();
mIOBuffer = new FieldPacker(bufferSize);
mModel = new Matrix4f();