/frameworks/base/libs/hwui/ |
H A D | Patch.h | 51 std::unique_ptr<TextureVertex[]> vertices; member in class:android::uirenderer::Patch
|
H A D | BakedOpRenderer.cpp | 189 std::vector<Vertex> vertices; local 190 vertices.reserve(count); 191 Vertex* vertex = vertices.data(); 213 .setMeshIndexedQuads(vertices.data(), count / 4)
|
H A D | Glop.h | 110 } vertices; member in struct:android::uirenderer::Glop::Mesh
|
H A D | AmbientShadow.cpp | 18 * Extra vertices for the corner for smoother corner. 19 * Only for outer vertices. 22 // For half circle, we could add EXTRA_VERTEX_PER_PI vertices. 27 // therefore, the maximum number of extra vertices will be twice bigger. 34 * Extra vertices for the Edge for interpolation artifacts. 35 * Same value for both inner and outer vertices. 49 // edge vertices. 68 inline Vector2 getNormalFromVertices(const Vector3* vertices, int current, int next) { argument 70 Vector2 currentVertex = { vertices[current].x, vertices[curren [all...] |
H A D | GlopBuilder.cpp | 81 mOutGlop->mesh.vertices = { 95 mOutGlop->mesh.vertices = { 106 // can't use unit quad VBO, so build UV vertices manually 114 mOutGlop->mesh.vertices = { 134 mOutGlop->mesh.vertices = { 148 mOutGlop->mesh.vertices = { 162 mOutGlop->mesh.vertices = { 176 mOutGlop->mesh.vertices = { 195 mOutGlop->mesh.vertices = { 210 mOutGlop->mesh.vertices 664 const Glop::Mesh::Vertices& vertices = glop.mesh.vertices; local [all...] |
H A D | Matrix.cpp | 472 float vertices[] = { local 482 float px = vertices[i]; 483 float py = vertices[i + 1]; 490 vertices[i] = x * z; 491 vertices[i + 1] = y * z; 494 r.left = r.right = vertices[0]; 495 r.top = r.bottom = vertices[1]; 498 x = vertices[i]; 499 y = vertices[i + 1];
|
H A D | RecordedOp.h | 225 const float* vertices, const int* colors) 230 , vertices(vertices) 235 const float* vertices; member in struct:android::uirenderer::BitmapMeshOp 376 SimpleRectsOp(BASE_PARAMS, Vertex* vertices, size_t vertexCount) argument 378 , vertices(vertices) 380 Vertex* vertices; member in struct:android::uirenderer::SimpleRectsOp 224 BitmapMeshOp(BASE_PARAMS, Bitmap* bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors) argument
|
H A D | BakedOpDispatcher.cpp | 39 static void storeTexturedRect(TextureVertex* vertices, const Rect& bounds) { argument 40 vertices[0] = { bounds.left, bounds.top, 0, 0 }; 41 vertices[1] = { bounds.right, bounds.top, 1, 0 }; 42 vertices[2] = { bounds.left, bounds.bottom, 0, 1 }; 43 vertices[3] = { bounds.right, bounds.bottom, 1, 1 }; 56 TextureVertex vertices[opList.count * 4]; local 59 TextureVertex* rectVerts = &vertices[i * 4]; 77 .setMeshTexturedIndexedQuads(vertices, opList.count * 6) 94 // of vertices we need in the new mesh 111 TextureVertex vertices[totalVertice local 477 const float* vertices = op.vertices; local [all...] |
H A D | RecordingCanvas.cpp | 521 const float* vertices, const int* colors, const SkPaint* paint) { 524 calcBoundsOfPoints(vertices, vertexCount * 2), 528 refBuffer<float>(vertices, vertexCount * 2), // 2 floats per vertex 520 drawBitmapMesh(Bitmap& bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) argument
|
H A D | SkiaCanvasProxy.cpp | 184 void SkiaCanvasProxy::onDrawVerticesObject(const SkVertices* vertices, SkBlendMode bmode, argument 192 const int floatCount = vertices->vertexCount() << 1; 193 const float* vArray = (const float*)vertices->positions(); 194 const float* tArray = (const float*)vertices->texCoords(); 195 const int* cArray = (const int*)vertices->colors(); 196 mCanvas->drawVertices(vertices->mode(), floatCount, vArray, tArray, cArray, 197 vertices->indices(), vertices->indexCount(), paint); 466 // If it fails to generate the vertices, then we do not draw.
|
H A D | PathTessellator.cpp | 84 * from each vertex in a perimeter is calculated, the resultant lines connecting the offset vertices 202 * Fills a vertexBuffer with non-alpha vertices, zig-zagging at each perimeter point to create a 205 * Uses an additional 2 vertices at the end to wrap around, closing the tri-strip 206 * (for a total of perimeter.size() * 2 + 2 vertices) 260 * Fills a vertexBuffer with non-alpha vertices similar to getStrokeVerticesFromPerimeter, except: 262 * 1 - Doesn't need to wrap around, since the input vertices are unclosed 264 * 2 - can zig-zag across 'extra' vertices at either end, to create round caps 267 const std::vector<Vertex>& vertices, VertexBuffer& vertexBuffer) { 269 const int allocSize = (vertices.size() + extra) * 2; 272 const int lastIndex = vertices 266 getStrokeVerticesFromUnclosedVertices(const PaintInfo& paintInfo, const std::vector<Vertex>& vertices, VertexBuffer& vertexBuffer) argument 406 storeCapAA(const PaintInfo& paintInfo, const std::vector<Vertex>& vertices, AlphaVertex* buffer, bool isFirst, Vector2 normal, int offset) argument 576 getStrokeVerticesFromUnclosedVerticesAA(const PaintInfo& paintInfo, const std::vector<Vertex>& vertices, VertexBuffer& vertexBuffer) argument 923 reverseVectorIfNotClockwise(std::vector<Vertex>& vertices) argument [all...] |
H A D | SkiaCanvas.cpp | 566 const float* vertices, const int* colors, const SkPaint* paint) { 576 memcpy(builder.positions(), vertices, ptCount * sizeof(SkPoint)); 565 drawBitmapMesh(Bitmap& hwuiBitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) argument
|
/frameworks/native/libs/gui/tests/ |
H A 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} }; local 115 glVertexPointer(2, GL_FLOAT, 0, vertices);
|
/frameworks/native/opengl/tests/linetex/ |
H A D | linetex.cpp | 85 const GLfloat vertices[4][2] = { local 104 glVertexPointer(2, GL_FLOAT, 0, vertices);
|
/frameworks/base/libs/hwui/renderstate/ |
H A D | MeshState.cpp | 68 ALOGD("MeshState vertices: vertex data %p, stride %d", 120 void MeshState::bindPositionVertexPointer(const GLvoid* vertices, GLsizei stride) { argument 121 // update pos coords if !current vbo, since vertices may point into mutable memory (e.g. stack) 123 || vertices != mCurrentPositionPointer 125 glVertexAttribPointer(Program::kBindingPosition, 2, GL_FLOAT, GL_FALSE, stride, vertices); 126 mCurrentPositionPointer = vertices; 131 void MeshState::bindTexCoordsVertexPointer(const GLvoid* vertices, GLsizei stride) { argument 132 // update tex coords if !current vbo, since vertices may point into mutable memory (e.g. stack) 134 || vertices != mCurrentTexCoordsPointer 136 glVertexAttribPointer(Program::kBindingTexCoords, 2, GL_FLOAT, GL_FALSE, stride, vertices); [all...] |
H A D | RenderState.cpp | 262 const Glop::Mesh::Vertices& vertices = mesh.vertices; local 316 // vertices 317 meshState().bindMeshBuffer(vertices.bufferObject); 318 meshState().bindPositionVertexPointer(vertices.position, vertices.stride); 344 if (vertices.attribFlags & VertexAttribFlags::TextureCoord) { 346 meshState().bindTexCoordsVertexPointer(vertices.texCoord, vertices.stride); 351 if (vertices [all...] |
/frameworks/native/opengl/tests/fillrate/ |
H A D | fillrate.cpp | 96 const GLfloat vertices[4][2] = { local 119 glVertexPointer(2, GL_FLOAT, 0, vertices);
|
/frameworks/av/cmds/screenrecord/ |
H A D | Program.cpp | 230 const float* vertices, const float* texes, size_t count) const { 235 err = beforeDraw(texName, texMatrix, vertices, texes, false); 244 const float* vertices, const float* texes, bool invert) const { 261 glVertexAttribPointer(maPositionLoc, 2, GL_FLOAT, GL_FALSE, 0, vertices); 229 drawTriangles(GLuint texName, const float* texMatrix, const float* vertices, const float* texes, size_t count) const argument 243 beforeDraw(GLuint texName, const float* texMatrix, const float* vertices, const float* texes, bool invert) const argument
|
/frameworks/native/opengl/tests/gl_jni/jni/ |
H A D | gl_code.cpp | 151 const GLfloat vertices[] = { local 166 glVertexPointer(3, GL_FLOAT, 0, vertices);
|
/frameworks/native/opengl/tests/tritex/ |
H A D | tritex.cpp | 233 const GLfloat vertices[] = {
local 254 glVertexPointer(3, GL_FLOAT, 0, vertices);
|
/frameworks/native/opengl/tests/angeles/ |
H A D | demo.c | 116 static GLOBJECT * newGLObject(long vertices, int vertexComponents, argument 123 result->count = vertices; 125 result->vertexArray = (GLfixed *)malloc(vertices * vertexComponents * 127 result->colorArray = (GLubyte *)malloc(vertices * 4 * sizeof(GLubyte)); 130 result->normalArray = (GLfixed *)malloc(vertices * 3 * 207 const long vertices = triangleCount * 3; local 213 result = newGLObject(vertices, 3, 1); 338 // Set number of vertices in object to the actual amount created. 351 const long vertices = triangleCount * 3; local 356 result = newGLObject(vertices, [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | ColorSpace.java | 3124 * @param primaries The triangle's vertices, as RGB primaries in an array of 6 floats 3156 * 3 vertices, is contained within another 2D triangle, also identified 3157 * by the 6 coordinates of its 3 vertices. 3160 * is contained within the triangle XYZ formed by the 3 vertices at 3215 // Translate the vertices p1 in the coordinates system 3216 // with the vertices p2 as the origin 4097 float[] vertices = new float[vertexCount * 2]; 4098 int[] colors = new int[vertices.length]; 4099 computeChromaticityMesh(vertices, colors); 4101 if (mUcs) xyYToUv(vertices); 4347 computeChromaticityMesh(@onNull float[] vertices, @NonNull int[] colors) argument [all...] |