Searched refs:AlphaVertex (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/libs/hwui/ |
D | Vertex.h | 99 struct AlphaVertex { struct 103 static inline void set(AlphaVertex* vertex, float x, float y, float alpha) { in set() argument 107 static inline void copyWithOffset(AlphaVertex* vertex, const AlphaVertex& src, float x, in copyWithOffset() argument 109 AlphaVertex::set(vertex, src.x + x, src.y + y, src.alpha); in copyWithOffset() 112 static inline void setColor(AlphaVertex* vertex, float alpha) { vertex[0].alpha = alpha; } in setColor() argument 115 REQUIRE_COMPATIBLE_LAYOUT(AlphaVertex);
|
D | PathTessellator.cpp | 348 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(perimeter.size() * 3 + 2); in getFillVerticesFromPerimeterAA() 367 AlphaVertex::set(&buffer[currentIndex++], current->x + totalOffset.x, in getFillVerticesFromPerimeterAA() 369 AlphaVertex::set(&buffer[currentIndex++], current->x - totalOffset.x, in getFillVerticesFromPerimeterAA() 403 AlphaVertex* buffer, bool isFirst, Vector2 normal, int offset) { in storeCapAA() 435 AlphaVertex::set(&buffer[capIndex + 0], referencePoint.x + outerOffset.x + capAAOffset.x, in storeCapAA() 437 AlphaVertex::set(&buffer[capIndex + 1], referencePoint.x + innerOffset.x - capAAOffset.x, in storeCapAA() 443 AlphaVertex::set(&buffer[postCapIndex + 2], referencePoint.x - outerOffset.x + capAAOffset.x, in storeCapAA() 445 AlphaVertex::set(&buffer[postCapIndex + 3], referencePoint.x - innerOffset.x - capAAOffset.x, in storeCapAA() 464 AlphaVertex::set(&buffer[capPerimIndex++], in storeCapAA() 467 AlphaVertex::set(&buffer[capPerimIndex++], in storeCapAA() [all …]
|
D | AmbientShadow.cpp | 184 AlphaVertex* shadowVertices = shadowVertexBuffer.alloc<AlphaVertex>(totalVertexCount); in createAmbientShadow() 213 AlphaVertex::set(&shadowVertices[vertexBufferIndex++], casterVertices[i].x, in createAmbientShadow() 234 AlphaVertex::set(&shadowVertices[vertexBufferIndex++], outerVertex.x, outerVertex.y, in createAmbientShadow() 270 AlphaVertex::set(&shadowVertices[vertexBufferIndex++], currentOuter.x, in createAmbientShadow() 279 AlphaVertex::set(&shadowVertices[vertexBufferIndex++], currentInner.x, in createAmbientShadow() 294 AlphaVertex::set(&shadowVertices[vertexBufferIndex++], centroid3d.x, centroid3d.y, in createAmbientShadow() 311 shadowVertexBuffer.computeBounds<AlphaVertex>(); in createAmbientShadow()
|
D | SpotShadow.cpp | 909 AlphaVertex* shadowVertices = shadowTriangleStrip.alloc<AlphaVertex>(totalVertexCount); in generateTriangleStrip() 916 AlphaVertex::set(&shadowVertices[vertexBufferIndex++], newPenumbra[i].x, newPenumbra[i].y, in generateTriangleStrip() 924 AlphaVertex::set(&shadowVertices[vertexBufferIndex++], umbra[i].x, umbra[i].y, in generateTriangleStrip() 965 AlphaVertex::set(&shadowVertices[vertexBufferIndex++], closerVertex.x, closerVertex.y, in generateTriangleStrip() 972 AlphaVertex::set(&shadowVertices[vertexBufferIndex++], centroid.x, centroid.y, in generateTriangleStrip() 990 shadowTriangleStrip.computeBounds<AlphaVertex>(); in generateTriangleStrip()
|
/frameworks/base/libs/hwui/renderstate/ |
D | MeshState.h | 40 const GLsizei kAlphaVertexStride = sizeof(AlphaVertex);
|