summaryrefslogtreecommitdiff
path: root/libs/hwui/Vertex.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-07-09 13:25:56 -0700
committerRomain Guy <romainguy@google.com>2010-07-09 13:25:56 -0700
commit82ba814ca0dea659be2cc6523bc0137679d961ce (patch)
tree93d2375615c7c67ccda0506376eef2079366fa5b /libs/hwui/Vertex.h
parent020057bd534a41080af8edbe6c6565d478ef256c (diff)
Optimize blending state changes.
Change-Id: I7c22a8aecccb8b5abfcf7243f049a4ef3cf3979a
Diffstat (limited to 'libs/hwui/Vertex.h')
-rw-r--r--libs/hwui/Vertex.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/hwui/Vertex.h b/libs/hwui/Vertex.h
index 208d2a84d79f..ffd063384846 100644
--- a/libs/hwui/Vertex.h
+++ b/libs/hwui/Vertex.h
@@ -41,6 +41,11 @@ struct TextureVertex {
vertex[0].texture[0] = u;
vertex[0].texture[1] = v;
}
+
+ static inline void setUV(TextureVertex* vertex, float u, float v) {
+ vertex[0].texture[0] = u;
+ vertex[0].texture[1] = v;
+ }
}; // struct TextureVertex
}; // namespace uirenderer