Searched defs:vertices (Results 1 - 22 of 22) sorted by relevance

/frameworks/base/libs/hwui/
H A DPatch.h51 std::unique_ptr<TextureVertex[]> vertices; member in class:android::uirenderer::Patch
H A DBakedOpRenderer.cpp189 std::vector<Vertex> vertices; local
190 vertices.reserve(count);
191 Vertex* vertex = vertices.data();
213 .setMeshIndexedQuads(vertices.data(), count / 4)
H A DGlop.h110 } vertices; member in struct:android::uirenderer::Glop::Mesh
H A DAmbientShadow.cpp18 * 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 DGlopBuilder.cpp81 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 DMatrix.cpp472 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 DRecordedOp.h225 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 DBakedOpDispatcher.cpp39 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 DRecordingCanvas.cpp521 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 DSkiaCanvasProxy.cpp184 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 DPathTessellator.cpp84 * 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 DSkiaCanvas.cpp566 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 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} }; local
115 glVertexPointer(2, GL_FLOAT, 0, vertices);
/frameworks/native/opengl/tests/linetex/
H A Dlinetex.cpp85 const GLfloat vertices[4][2] = { local
104 glVertexPointer(2, GL_FLOAT, 0, vertices);
/frameworks/base/libs/hwui/renderstate/
H A DMeshState.cpp68 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 DRenderState.cpp262 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 Dfillrate.cpp96 const GLfloat vertices[4][2] = { local
119 glVertexPointer(2, GL_FLOAT, 0, vertices);
/frameworks/av/cmds/screenrecord/
H A DProgram.cpp230 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 Dgl_code.cpp151 const GLfloat vertices[] = { local
166 glVertexPointer(3, GL_FLOAT, 0, vertices);
/frameworks/native/opengl/tests/tritex/
H A Dtritex.cpp233 const GLfloat vertices[] = { local
254 glVertexPointer(3, GL_FLOAT, 0, vertices);
/frameworks/native/opengl/tests/angeles/
H A Ddemo.c116 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 DColorSpace.java3124 * @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...]

Completed in 944 milliseconds