/frameworks/base/libs/hwui/renderstate/ |
D | RenderState.cpp | 240 const Glop::Mesh::Vertices& vertices = mesh.vertices; in render() local 295 meshState().bindMeshBuffer(vertices.bufferObject); in render() 296 meshState().bindPositionVertexPointer(vertices.position, vertices.stride); in render() 322 if (vertices.attribFlags & VertexAttribFlags::TextureCoord) { in render() 324 meshState().bindTexCoordsVertexPointer(vertices.texCoord, vertices.stride); in render() 329 if (vertices.attribFlags & VertexAttribFlags::Color) { in render() 332 … glVertexAttribPointer(colorLocation, 4, GL_FLOAT, GL_FALSE, vertices.stride, vertices.color); in render() 335 if (vertices.attribFlags & VertexAttribFlags::Alpha) { in render() 337 const void* alphaCoords = ((const GLbyte*) vertices.position) + kVertexAlphaOffset; in render() 340 glVertexAttribPointer(alphaLocation, 1, GL_FLOAT, GL_FALSE, vertices.stride, alphaCoords); in render() [all …]
|
D | MeshState.cpp | 116 void MeshState::bindPositionVertexPointer(const GLvoid* vertices, GLsizei stride) { in bindPositionVertexPointer() argument 119 || vertices != mCurrentPositionPointer in bindPositionVertexPointer() 121 glVertexAttribPointer(Program::kBindingPosition, 2, GL_FLOAT, GL_FALSE, stride, vertices); in bindPositionVertexPointer() 122 mCurrentPositionPointer = vertices; in bindPositionVertexPointer() 127 void MeshState::bindTexCoordsVertexPointer(const GLvoid* vertices, GLsizei stride) { in bindTexCoordsVertexPointer() argument 130 || vertices != mCurrentTexCoordsPointer in bindTexCoordsVertexPointer() 132 glVertexAttribPointer(Program::kBindingTexCoords, 2, GL_FLOAT, GL_FALSE, stride, vertices); in bindTexCoordsVertexPointer() 133 mCurrentTexCoordsPointer = vertices; in bindTexCoordsVertexPointer()
|
D | MeshState.h | 84 void bindPositionVertexPointer(const GLvoid* vertices, 91 void bindTexCoordsVertexPointer(const GLvoid* vertices,
|
/frameworks/base/libs/hwui/tests/unit/ |
D | GlopBuilderTests.cpp | 62 EXPECT_EQ(expectedMesh.vertices.attribFlags, builtMesh.vertices.attribFlags); in expectMeshEq() 63 EXPECT_EQ(expectedMesh.vertices.bufferObject, builtMesh.vertices.bufferObject); in expectMeshEq() 64 EXPECT_EQ(expectedMesh.vertices.color, builtMesh.vertices.color); in expectMeshEq() 65 EXPECT_EQ(expectedMesh.vertices.position, builtMesh.vertices.position); in expectMeshEq() 66 EXPECT_EQ(expectedMesh.vertices.stride, builtMesh.vertices.stride); in expectMeshEq() 67 EXPECT_EQ(expectedMesh.vertices.texCoord, builtMesh.vertices.texCoord); in expectMeshEq() 69 if (builtMesh.vertices.position) { in expectMeshEq() 104 glop->mesh.vertices = { in blackUnitQuadGlop()
|
/frameworks/av/cmds/screenrecord/ |
D | TextRenderer.cpp | 194 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 …]
|
D | Program.cpp | 230 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()
|
D | Program.h | 62 const float* vertices, const float* texes, size_t count) const; 72 const float* vertices, const float* texes, bool invert) const;
|
/frameworks/base/libs/hwui/ |
D | PathTessellator.cpp | 267 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 …]
|
D | GlopBuilder.cpp | 78 mOutGlop->mesh.vertices = { in setMeshTexturedIndexedVbo() 92 mOutGlop->mesh.vertices = { in setMeshUnitQuad() 111 mOutGlop->mesh.vertices = { in setMeshTexturedUnitQuad() 131 mOutGlop->mesh.vertices = { in setMeshTexturedUvQuad() 145 mOutGlop->mesh.vertices = { in setMeshIndexedQuads() 159 mOutGlop->mesh.vertices = { in setMeshTexturedIndexedQuads() 173 mOutGlop->mesh.vertices = { in setMeshTexturedMesh() 187 mOutGlop->mesh.vertices = { in setMeshColoredTexturedMesh() 206 mOutGlop->mesh.vertices = { in setMeshVertexBuffer() 221 mOutGlop->mesh.vertices = { in setMeshPatchQuads() [all …]
|
D | BakedOpDispatcher.cpp | 38 static void storeTexturedRect(TextureVertex* vertices, const Rect& bounds, const Rect& texCoord) { in storeTexturedRect() argument 39 vertices[0] = { bounds.left, bounds.top, texCoord.left, texCoord.top }; in storeTexturedRect() 40 vertices[1] = { bounds.right, bounds.top, texCoord.right, texCoord.top }; in storeTexturedRect() 41 vertices[2] = { bounds.left, bounds.bottom, texCoord.left, texCoord.bottom }; in storeTexturedRect() 42 vertices[3] = { bounds.right, bounds.bottom, texCoord.right, texCoord.bottom }; in storeTexturedRect() 56 TextureVertex vertices[opList.count * 4]; in onMergedBitmapOps() local 63 TextureVertex* rectVerts = &vertices[i * 4]; in onMergedBitmapOps() 81 .setMeshTexturedIndexedQuads(vertices, opList.count * 6) in onMergedBitmapOps() 117 TextureVertex vertices[totalVertices]; in onMergedPatchOps() local 118 TextureVertex* vertex = &vertices[0]; in onMergedPatchOps() [all …]
|
D | RecordedOp.h | 225 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
|
D | AmbientShadow.cpp | 68 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()
|
D | OpenGLRenderer.cpp | 1269 Vertex* vertices = &rectangleVertices[0]; in drawRectangleList() local 1272 .setMeshIndexedQuads(vertices, rectangleVertices.size() / 4) in drawRectangleList() 1461 int bitmapCount, TextureVertex* vertices, bool pureTranslate, 1480 .setMeshTexturedMesh(vertices, bitmapCount * 6) 1512 const float* vertices, const int* colors, const SkPaint* paint) { 1513 if (!vertices || mState.currentlyIgnored()) { 1558 ColorTextureVertex::set(vertex++, vertices[dx], vertices[dy], u2, v2, colors[dx / 2]); 1559 ColorTextureVertex::set(vertex++, vertices[ax], vertices[ay], u1, v2, colors[ax / 2]); 1560 ColorTextureVertex::set(vertex++, vertices[bx], vertices[by], u1, v1, colors[bx / 2]); 1562 ColorTextureVertex::set(vertex++, vertices[dx], vertices[dy], u2, v2, colors[dx / 2]); [all …]
|
D | Matrix.cpp | 472 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()
|
D | Patch.cpp | 60 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()
|
D | BakedOpRenderer.cpp | 193 std::vector<Vertex> vertices; in drawRects() local 194 vertices.reserve(count); in drawRects() 195 Vertex* vertex = vertices.data(); in drawRects() 217 .setMeshIndexedQuads(vertices.data(), count / 4) in drawRects()
|
D | Patch.h | 51 std::unique_ptr<TextureVertex[]> vertices; variable
|
D | PatchCache.cpp | 218 glBufferSubData(GL_ARRAY_BUFFER, newMesh->positionOffset, size, newMesh->vertices.get()); in setupMesh() 251 if (newMesh->vertices) { in get()
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/ |
D | Cube.java | 33 int vertices[] = { in Cube() local 72 ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length*4); in Cube() 75 mVertexBuffer.put(vertices); in Cube()
|
/frameworks/native/opengl/tests/angeles/ |
D | demo.c | 116 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/ |
D | linetex.cpp | 85 const GLfloat vertices[4][2] = { in main() local 104 glVertexPointer(2, GL_FLOAT, 0, vertices); in main()
|
/frameworks/native/libs/gui/tests/ |
D | MultiTextureConsumer_test.cpp | 114 …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/ |
D | fillrate.cpp | 96 const GLfloat vertices[4][2] = { in main() local 119 glVertexPointer(2, GL_FLOAT, 0, vertices); in main()
|
/frameworks/native/opengl/tests/filter/ |
D | filter.cpp | 144 const GLfloat vertices[4][2] = { in main() local 179 glVertexPointer(2, GL_FLOAT, 0, vertices); in main()
|
/frameworks/native/opengl/tests/gl_jni/jni/ |
D | gl_code.cpp | 151 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()
|