API review cleanup.
Change-Id: Ieae7d450308b5637ed4253fe9baed3634c6ed141
diff --git a/graphics/java/android/renderscript/Mesh.java b/graphics/java/android/renderscript/Mesh.java
index 4187992..9176bc8 100644
--- a/graphics/java/android/renderscript/Mesh.java
+++ b/graphics/java/android/renderscript/Mesh.java
@@ -174,7 +174,7 @@
Type newType(Element e, int size) {
Type.Builder tb = new Type.Builder(mRS, e);
- tb.add(Dimension.X, size);
+ tb.setX(size);
return tb.create();
}
@@ -466,12 +466,12 @@
Mesh sm = smb.create();
- sm.getVertexAllocation(0).data(mVtxData);
+ sm.getVertexAllocation(0).copyFrom(mVtxData);
if(uploadToBufferObject) {
sm.getVertexAllocation(0).uploadToBufferObject();
}
- sm.getIndexAllocation(0).data(mIndexData);
+ sm.getIndexAllocation(0).copyFrom(mIndexData);
sm.getIndexAllocation(0).uploadToBufferObject();
return sm;