diff options
author | Mathew Inwood <mathewi@google.com> | 2018-08-06 09:38:58 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-08-06 09:38:58 -0700 |
commit | 1d526c114f079d549cc8b1cdba216a1dbbb0ef86 (patch) | |
tree | 3feebe233a0dfc8609e67574a227ed4dbbd78700 /rs/java/android/renderscript/Mesh.java | |
parent | 2595e6817666ece75e3bee37cbb10f7e0537131f (diff) | |
parent | 3d05f769a393d43953bcee1437b67066c2e85a02 (diff) |
Merge "Add @UnsupportedAppUsage annotations"
am: 3d05f769a3
Change-Id: Id21c0f5dee82e2f2174d795763420bfed806a17b
Diffstat (limited to 'rs/java/android/renderscript/Mesh.java')
-rw-r--r-- | rs/java/android/renderscript/Mesh.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rs/java/android/renderscript/Mesh.java b/rs/java/android/renderscript/Mesh.java index 9e4f90573ae9..5321dcb957dc 100644 --- a/rs/java/android/renderscript/Mesh.java +++ b/rs/java/android/renderscript/Mesh.java @@ -16,6 +16,7 @@ package android.renderscript; +import android.annotation.UnsupportedAppUsage; import java.util.Vector; /** @@ -49,6 +50,7 @@ public class Mesh extends BaseObj { * @deprecated in API 16 * Vertex data will be rendered as a series of points */ + @UnsupportedAppUsage POINT (0), /** * @deprecated in API 16 @@ -64,6 +66,7 @@ public class Mesh extends BaseObj { * @deprecated in API 16 * Vertices will be rendered as individual triangles */ + @UnsupportedAppUsage TRIANGLE (3), /** * @deprecated in API 16 @@ -111,6 +114,7 @@ public class Mesh extends BaseObj { * @return vertex data allocation at the given index * **/ + @UnsupportedAppUsage public Allocation getVertexAllocation(int slot) { return mVertexBuffers[slot]; } @@ -424,6 +428,7 @@ public class Mesh extends BaseObj { /** * @deprecated in API 16 **/ + @UnsupportedAppUsage public AllocationBuilder(RenderScript rs) { mRS = rs; mVertexTypeCount = 0; @@ -458,6 +463,7 @@ public class Mesh extends BaseObj { * * @return this **/ + @UnsupportedAppUsage public AllocationBuilder addVertexAllocation(Allocation a) throws IllegalStateException { if (mVertexTypeCount >= mVertexTypes.length) { throw new IllegalStateException("Max vertex types exceeded."); @@ -479,6 +485,7 @@ public class Mesh extends BaseObj { * * @return this **/ + @UnsupportedAppUsage public AllocationBuilder addIndexSetAllocation(Allocation a, Primitive p) { Entry indexType = new Entry(); indexType.a = a; @@ -495,6 +502,7 @@ public class Mesh extends BaseObj { * * @return this **/ + @UnsupportedAppUsage public AllocationBuilder addIndexSetType(Primitive p) { Entry indexType = new Entry(); indexType.a = null; @@ -508,6 +516,7 @@ public class Mesh extends BaseObj { * Create a Mesh object from the current state of the builder * **/ + @UnsupportedAppUsage public Mesh create() { mRS.validate(); @@ -596,6 +605,7 @@ public class Mesh extends BaseObj { * channels are present in the mesh * **/ + @UnsupportedAppUsage public TriangleMeshBuilder(RenderScript rs, int vtxSize, int flags) { mRS = rs; mVtxCount = 0; @@ -652,6 +662,7 @@ public class Mesh extends BaseObj { * @return this * **/ + @UnsupportedAppUsage public TriangleMeshBuilder addVertex(float x, float y) { if (mVtxSize != 2) { throw new IllegalStateException("add mistmatch with declared components."); @@ -757,6 +768,7 @@ public class Mesh extends BaseObj { * * @return this **/ + @UnsupportedAppUsage public TriangleMeshBuilder addTriangle(int idx1, int idx2, int idx3) { if((idx1 >= mMaxIndex) || (idx1 < 0) || (idx2 >= mMaxIndex) || (idx2 < 0) || @@ -789,6 +801,7 @@ public class Mesh extends BaseObj { * accessible memory * **/ + @UnsupportedAppUsage public Mesh create(boolean uploadToBufferObject) { Element.Builder b = new Element.Builder(mRS); b.add(Element.createVector(mRS, |