Home
last modified time | relevance | path

Searched refs:vertices (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/libs/hwui/tests/unit/
DGlopBuilderTests.cpp66 EXPECT_EQ(expectedMesh.vertices.attribFlags, builtMesh.vertices.attribFlags); in expectMeshEq()
67 EXPECT_EQ(expectedMesh.vertices.bufferObject, builtMesh.vertices.bufferObject); in expectMeshEq()
68 EXPECT_EQ(expectedMesh.vertices.color, builtMesh.vertices.color); in expectMeshEq()
69 EXPECT_EQ(expectedMesh.vertices.position, builtMesh.vertices.position); in expectMeshEq()
70 EXPECT_EQ(expectedMesh.vertices.stride, builtMesh.vertices.stride); in expectMeshEq()
71 EXPECT_EQ(expectedMesh.vertices.texCoord, builtMesh.vertices.texCoord); in expectMeshEq()
73 if (builtMesh.vertices.position) { in expectMeshEq()
105 glop->mesh.vertices = { in blackUnitQuadGlop()
/frameworks/base/libs/hwui/renderstate/
DRenderState.cpp262 const Glop::Mesh::Vertices& vertices = mesh.vertices; in render() local
317 meshState().bindMeshBuffer(vertices.bufferObject); in render()
318 meshState().bindPositionVertexPointer(vertices.position, vertices.stride); in render()
344 if (vertices.attribFlags & VertexAttribFlags::TextureCoord) { in render()
346 meshState().bindTexCoordsVertexPointer(vertices.texCoord, vertices.stride); in render()
351 if (vertices.attribFlags & VertexAttribFlags::Color) { in render()
354 … glVertexAttribPointer(colorLocation, 4, GL_FLOAT, GL_FALSE, vertices.stride, vertices.color); in render()
357 if (vertices.attribFlags & VertexAttribFlags::Alpha) { in render()
359 const void* alphaCoords = ((const GLbyte*) vertices.position) + kVertexAlphaOffset; in render()
362 glVertexAttribPointer(alphaLocation, 1, GL_FLOAT, GL_FALSE, vertices.stride, alphaCoords); in render()
[all …]
DMeshState.cpp120 void MeshState::bindPositionVertexPointer(const GLvoid* vertices, GLsizei stride) { in bindPositionVertexPointer() argument
123 || vertices != mCurrentPositionPointer in bindPositionVertexPointer()
125 glVertexAttribPointer(Program::kBindingPosition, 2, GL_FLOAT, GL_FALSE, stride, vertices); in bindPositionVertexPointer()
126 mCurrentPositionPointer = vertices; in bindPositionVertexPointer()
131 void MeshState::bindTexCoordsVertexPointer(const GLvoid* vertices, GLsizei stride) { in bindTexCoordsVertexPointer() argument
134 || vertices != mCurrentTexCoordsPointer in bindTexCoordsVertexPointer()
136 glVertexAttribPointer(Program::kBindingTexCoords, 2, GL_FLOAT, GL_FALSE, stride, vertices); in bindTexCoordsVertexPointer()
137 mCurrentTexCoordsPointer = vertices; in bindTexCoordsVertexPointer()
DMeshState.h85 void bindPositionVertexPointer(const GLvoid* vertices,
92 void bindTexCoordsVertexPointer(const GLvoid* vertices,
/frameworks/av/cmds/screenrecord/
DTextRenderer.cpp194 float vertices[len * quadCoords]; in drawString() local
218 vertices[off + 0] = vertLeft; in drawString()
219 vertices[off + 1] = vertBottom; in drawString()
220 vertices[off + 2] = vertRight; in drawString()
221 vertices[off + 3] = vertBottom; in drawString()
222 vertices[off + 4] = vertLeft; in drawString()
223 vertices[off + 5] = vertTop; in drawString()
224 vertices[off + 6] = vertLeft; in drawString()
225 vertices[off + 7] = vertTop; in drawString()
226 vertices[off + 8] = vertRight; in drawString()
[all …]
DProgram.h62 const float* vertices, const float* texes, size_t count) const;
72 const float* vertices, const float* texes, bool invert) const;
DProgram.cpp230 const float* vertices, const float* texes, size_t count) const { in drawTriangles() argument
235 err = beforeDraw(texName, texMatrix, vertices, texes, false); in drawTriangles()
244 const float* vertices, const float* texes, bool invert) const { in beforeDraw() argument
261 glVertexAttribPointer(maPositionLoc, 2, GL_FLOAT, GL_FALSE, 0, vertices); in beforeDraw()
/frameworks/base/libs/hwui/
DPathTessellator.cpp267 const std::vector<Vertex>& vertices, VertexBuffer& vertexBuffer) { in getStrokeVerticesFromUnclosedVertices() argument
269 const int allocSize = (vertices.size() + extra) * 2; in getStrokeVerticesFromUnclosedVertices()
272 const int lastIndex = vertices.size() - 1; in getStrokeVerticesFromUnclosedVertices()
276 - (vertices[0].x - vertices[1].x), in getStrokeVerticesFromUnclosedVertices()
277 vertices[0].y - vertices[1].y); in getStrokeVerticesFromUnclosedVertices()
279 - (vertices[lastIndex].x - vertices[lastIndex - 1].x), in getStrokeVerticesFromUnclosedVertices()
280 vertices[lastIndex].y - vertices[lastIndex - 1].y); in getStrokeVerticesFromUnclosedVertices()
295 vertices[0].x + beginRadialOffset.x, in getStrokeVerticesFromUnclosedVertices()
296 vertices[0].y + beginRadialOffset.y); in getStrokeVerticesFromUnclosedVertices()
302 vertices[lastIndex].x + endRadialOffset.x, in getStrokeVerticesFromUnclosedVertices()
[all …]
DGlopBuilder.cpp81 mOutGlop->mesh.vertices = { in setMeshTexturedIndexedVbo()
95 mOutGlop->mesh.vertices = { in setMeshUnitQuad()
114 mOutGlop->mesh.vertices = { in setMeshTexturedUnitQuad()
134 mOutGlop->mesh.vertices = { in setMeshTexturedUvQuad()
148 mOutGlop->mesh.vertices = { in setMeshIndexedQuads()
162 mOutGlop->mesh.vertices = { in setMeshTexturedIndexedQuads()
176 mOutGlop->mesh.vertices = { in setMeshColoredTexturedMesh()
195 mOutGlop->mesh.vertices = { in setMeshVertexBuffer()
210 mOutGlop->mesh.vertices = { in setMeshPatchQuads()
245 || (mOutGlop->mesh.vertices.attribFlags & VertexAttribFlags::Alpha) in setFill()
[all …]
DBakedOpDispatcher.cpp39 static void storeTexturedRect(TextureVertex* vertices, const Rect& bounds) { in storeTexturedRect() argument
40 vertices[0] = { bounds.left, bounds.top, 0, 0 }; in storeTexturedRect()
41 vertices[1] = { bounds.right, bounds.top, 1, 0 }; in storeTexturedRect()
42 vertices[2] = { bounds.left, bounds.bottom, 0, 1 }; in storeTexturedRect()
43 vertices[3] = { bounds.right, bounds.bottom, 1, 1 }; in storeTexturedRect()
56 TextureVertex vertices[opList.count * 4]; in onMergedBitmapOps() local
59 TextureVertex* rectVerts = &vertices[i * 4]; in onMergedBitmapOps()
77 .setMeshTexturedIndexedQuads(vertices, opList.count * 6) in onMergedBitmapOps()
111 TextureVertex vertices[totalVertices]; in onMergedPatchOps() local
112 TextureVertex* vertex = &vertices[0]; in onMergedPatchOps()
[all …]
DRecordedOp.h225 const float* vertices, const int* colors) in BitmapMeshOp()
230 , vertices(vertices) in BitmapMeshOp()
235 const float* vertices; member
376 SimpleRectsOp(BASE_PARAMS, Vertex* vertices, size_t vertexCount) in SimpleRectsOp()
378 , vertices(vertices) in SimpleRectsOp()
380 Vertex* vertices; member
DAmbientShadow.cpp68 inline Vector2 getNormalFromVertices(const Vector3* vertices, int current, int next) { in getNormalFromVertices() argument
70 Vector2 currentVertex = { vertices[current].x, vertices[current].y }; in getNormalFromVertices()
71 Vector2 nextVertex = { vertices[next].x, vertices[next].y }; in getNormalFromVertices()
DMatrix.cpp472 float vertices[] = { in mapRect() local
482 float px = vertices[i]; in mapRect()
483 float py = vertices[i + 1]; in mapRect()
490 vertices[i] = x * z; in mapRect()
491 vertices[i + 1] = y * z; in mapRect()
494 r.left = r.right = vertices[0]; in mapRect()
495 r.top = r.bottom = vertices[1]; in mapRect()
498 x = vertices[i]; in mapRect()
499 y = vertices[i + 1]; in mapRect()
DPatch.cpp60 vertices.reset(new TextureVertex[maxVertices]); in Patch()
61 TextureVertex* vertex = vertices.get(); in Patch()
142 memcpy(reducedVertices.get(), vertices.get(), verticesCount * sizeof(TextureVertex)); in Patch()
143 vertices = std::move(reducedVertices); in Patch()
DSkiaCanvasProxy.cpp184 void SkiaCanvasProxy::onDrawVerticesObject(const SkVertices* vertices, SkBlendMode bmode, in onDrawVerticesObject() argument
192 const int floatCount = vertices->vertexCount() << 1; in onDrawVerticesObject()
193 const float* vArray = (const float*)vertices->positions(); in onDrawVerticesObject()
194 const float* tArray = (const float*)vertices->texCoords(); in onDrawVerticesObject()
195 const int* cArray = (const int*)vertices->colors(); in onDrawVerticesObject()
196 mCanvas->drawVertices(vertices->mode(), floatCount, vArray, tArray, cArray, in onDrawVerticesObject()
197 vertices->indices(), vertices->indexCount(), paint); in onDrawVerticesObject()
DBakedOpRenderer.cpp189 std::vector<Vertex> vertices; in drawRects() local
190 vertices.reserve(count); in drawRects()
191 Vertex* vertex = vertices.data(); in drawRects()
213 .setMeshIndexedQuads(vertices.data(), count / 4) in drawRects()
DPatch.h51 std::unique_ptr<TextureVertex[]> vertices; variable
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/
DCube.java33 int vertices[] = { in Cube() local
72 ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length*4); in Cube()
75 mVertexBuffer.put(vertices); in Cube()
/frameworks/base/graphics/java/android/graphics/
DColorSpace.java4097 float[] vertices = new float[vertexCount * 2];
4098 int[] colors = new int[vertices.length];
4099 computeChromaticityMesh(vertices, colors);
4101 if (mUcs) xyYToUv(vertices);
4102 for (int i = 0; i < vertices.length; i += 2) {
4103 vertices[i] *= width;
4104 vertices[i + 1] = height - vertices[i + 1] * height;
4127 canvas.drawVertices(Canvas.VertexMode.TRIANGLES, vertices.length, vertices, 0,
4133 canvas.drawVertices(Canvas.VertexMode.TRIANGLES, vertices.length, vertices, 0,
4138 canvas.drawVertices(Canvas.VertexMode.TRIANGLES, vertices.length, vertices, 0,
[all …]
/frameworks/native/opengl/tests/angeles/
Ddemo.c116 static GLOBJECT * newGLObject(long vertices, int vertexComponents, in newGLObject() argument
123 result->count = vertices; in newGLObject()
125 result->vertexArray = (GLfixed *)malloc(vertices * vertexComponents * in newGLObject()
127 result->colorArray = (GLubyte *)malloc(vertices * 4 * sizeof(GLubyte)); in newGLObject()
130 result->normalArray = (GLfixed *)malloc(vertices * 3 * in newGLObject()
207 const long vertices = triangleCount * 3; in createSuperShape() local
213 result = newGLObject(vertices, 3, 1); in createSuperShape()
351 const long vertices = triangleCount * 3; in createGroundPlane() local
356 result = newGLObject(vertices, 2, 0); in createGroundPlane()
/frameworks/native/opengl/tests/linetex/
Dlinetex.cpp85 const GLfloat vertices[4][2] = { in main() local
104 glVertexPointer(2, GL_FLOAT, 0, vertices); in main()
/frameworks/native/libs/gui/tests/
DMultiTextureConsumer_test.cpp114 …GLfloat vertices[][2] = { {i*16.0f, 0}, {(i+1)*16.0f, 0}, {(i+1)*16.0f, 16.0f}, {i*16.0f, 16.0f} }; in TEST_F() local
115 glVertexPointer(2, GL_FLOAT, 0, vertices); in TEST_F()
/frameworks/native/opengl/tests/fillrate/
Dfillrate.cpp96 const GLfloat vertices[4][2] = { in main() local
119 glVertexPointer(2, GL_FLOAT, 0, vertices); in main()
/frameworks/native/opengl/tests/filter/
Dfilter.cpp144 const GLfloat vertices[4][2] = { in main() local
179 glVertexPointer(2, GL_FLOAT, 0, vertices); in main()
/frameworks/native/opengl/tests/gl_jni/jni/
Dgl_code.cpp151 const GLfloat vertices[] = { in Java_com_android_gljni_GLJNILib_step() local
166 glVertexPointer(3, GL_FLOAT, 0, vertices); in Java_com_android_gljni_GLJNILib_step()

12