summaryrefslogtreecommitdiff
path: root/libs/hwui/Vertex.h
diff options
context:
space:
mode:
authorMike Reed <reed@google.com>2018-05-09 09:16:40 -0400
committerMike Reed <reed@google.com>2018-05-09 13:18:35 -0400
commitfaaf6872b1092f98820289e89015ba8dbef62784 (patch)
tree99d384299b580a043974bf71f158e896522728ed /libs/hwui/Vertex.h
parent293cd1027be61fa0b4659f0880b99b8ee8aae271 (diff)
remove unneeded RecordedOps
Test: make Change-Id: Ifcb0df64ad649623ae875462f55d9009a4e1ac03
Diffstat (limited to 'libs/hwui/Vertex.h')
-rw-r--r--libs/hwui/Vertex.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/libs/hwui/Vertex.h b/libs/hwui/Vertex.h
index 186d0a88a33e..a6aae55b2ee8 100644
--- a/libs/hwui/Vertex.h
+++ b/libs/hwui/Vertex.h
@@ -74,46 +74,6 @@ struct TextureVertex {
REQUIRE_COMPATIBLE_LAYOUT(TextureVertex);
-/**
- * Simple structure to describe a vertex with a position, texture UV and an
- * sRGB color with alpha. The color is stored pre-multiplied in linear space.
- */
-struct ColorTextureVertex {
- float x, y;
- float u, v;
- float r, g, b, a; // pre-multiplied linear
-
- static inline void set(ColorTextureVertex* vertex, float x, float y, float u, float v,
- uint32_t color) {
- FloatColor c;
- c.set(color);
- *vertex = {x, y, u, v, c.r, c.g, c.b, c.a};
- }
-}; // struct ColorTextureVertex
-
-REQUIRE_COMPATIBLE_LAYOUT(ColorTextureVertex);
-
-/**
- * Simple structure to describe a vertex with a position and an alpha value.
- */
-struct AlphaVertex {
- float x, y;
- float alpha;
-
- static inline void set(AlphaVertex* vertex, float x, float y, float alpha) {
- *vertex = {x, y, alpha};
- }
-
- static inline void copyWithOffset(AlphaVertex* vertex, const AlphaVertex& src, float x,
- float y) {
- AlphaVertex::set(vertex, src.x + x, src.y + y, src.alpha);
- }
-
- static inline void setColor(AlphaVertex* vertex, float alpha) { vertex[0].alpha = alpha; }
-}; // struct AlphaVertex
-
-REQUIRE_COMPATIBLE_LAYOUT(AlphaVertex);
-
}; // namespace uirenderer
}; // namespace android