Home
last modified time | relevance | path

Searched refs:vertexBuffer (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DMeshLargeActivity.java60 FloatBuffer vertexBuffer = FloatBuffer.allocate((numTriangles + 2) * 30); in onDraw() local
67 vertexBuffer.put(0, origin); in onDraw()
68 vertexBuffer.put(1, origin); in onDraw()
70 vertexBuffer.put(2 + (i * 4), 1.0f); in onDraw()
71 vertexBuffer.put(2 + (i * 4) + 1, 1.0f); in onDraw()
72 vertexBuffer.put(2 + (i * 4) + 2, 1.0f); in onDraw()
73 vertexBuffer.put(2 + (i * 4) + 3, 1.0f); in onDraw()
77 vertexBuffer.put(30, origin + radius); in onDraw()
78 vertexBuffer.put(31, origin); in onDraw()
80 vertexBuffer.put(32 + (i * 4), 1.0f); in onDraw()
[all …]
DMeshActivity.java58 FloatBuffer vertexBuffer = FloatBuffer.allocate(6); in onDraw() local
59 vertexBuffer.put(0, 100.0f); in onDraw()
60 vertexBuffer.put(1, 100.0f); in onDraw()
61 vertexBuffer.put(2, 400.0f); in onDraw()
62 vertexBuffer.put(3, 0.0f); in onDraw()
63 vertexBuffer.put(4, 0.0f); in onDraw()
64 vertexBuffer.put(5, 400.0f); in onDraw()
65 vertexBuffer.rewind(); in onDraw()
67 meshSpec, Mesh.TRIANGLES, vertexBuffer, 3, new RectF(0, 0, 1000, 1000)); in onDraw()
/frameworks/base/graphics/java/android/graphics/
DMesh.java82 @NonNull Buffer vertexBuffer, int vertexCount, @NonNull RectF bounds) { in Mesh() argument
86 long nativeMesh = nativeMake(meshSpec.mNativeMeshSpec, mode, vertexBuffer, in Mesh()
87 vertexBuffer.isDirect(), vertexCount, vertexBuffer.position(), bounds.left, in Mesh()
115 @NonNull Buffer vertexBuffer, int vertexCount, @NonNull ShortBuffer indexBuffer, in Mesh() argument
120 long nativeMesh = nativeMakeIndexed(meshSpec.mNativeMeshSpec, mode, vertexBuffer, in Mesh()
121 vertexBuffer.isDirect(), vertexCount, vertexBuffer.position(), indexBuffer, in Mesh()
368 private static native long nativeMake(long meshSpec, int mode, Buffer vertexBuffer, in nativeMake() argument
372 private static native long nativeMakeIndexed(long meshSpec, int mode, Buffer vertexBuffer, in nativeMakeIndexed() argument
/frameworks/base/libs/hwui/
DMesh.h146 SkMesh::VertexBuffer* vertexBuffer() const { return mSkiaBuffers.fVertexBuffer.get(); } in vertexBuffer() function
191 SkMesh::VertexBuffer* vertexBuffer = mBufferData->vertexBuffer(); in getSkMesh() local
192 LOG_FATAL_IF(vertexBuffer == nullptr, in getSkMesh()
195 if (vertexBuffer != mMesh.vertexBuffer()) mMesh = makeSkMesh(); in getSkMesh()
/frameworks/base/libs/hwui/jni/
Dandroid_graphics_Mesh.cpp31 static jlong make(JNIEnv* env, jobject, jlong meshSpec, jint mode, jobject vertexBuffer, in make() argument
36 auto buffer = copyJavaNioBufferToVector(env, vertexBuffer, bufferSize, isDirect); in make()
50 static jlong makeIndexed(JNIEnv* env, jobject, jlong meshSpec, jint mode, jobject vertexBuffer, in makeIndexed() argument
57 auto vBuf = copyJavaNioBufferToVector(env, vertexBuffer, vertexBufferSize, isVertexDirect); in makeIndexed()
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
DSwarm.java60 private volatile FloatBuffer vertexBuffer; field in Swarm
149 vertexBuffer = v; in setTriangles()
157 if (!mDrawSwarm || vertexBuffer == null) return; in draw()
159 synchronized (vertexBuffer) { in draw()
160 vertexBuffer.position(0); in draw()
166 …ES20.glVertexAttribPointer(mPositionHandle, 3, GLES20.GL_FLOAT, false, vertexStride, vertexBuffer); in draw()
/frameworks/rs/tests/java_api/GenImages/src/com/android/rs/genimage/
DGenImage.java126 private final FloatBuffer vertexBuffer; field in Triangle
212 vertexBuffer = createFloatBuffer(triangleCoords); in Triangle()
242 GLES20.glVertexAttribPointer(posA, 3, GLES20.GL_FLOAT, false, 12, vertexBuffer); in draw()