commit | 82ba814ca0dea659be2cc6523bc0137679d961ce | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Fri Jul 09 13:25:56 2010 -0700 |
committer | Romain Guy <romainguy@google.com> | Fri Jul 09 13:25:56 2010 -0700 |
tree | 93d2375615c7c67ccda0506376eef2079366fa5b | |
parent | 020057bd534a41080af8edbe6c6565d478ef256c [diff] [blame] |
Optimize blending state changes. Change-Id: I7c22a8aecccb8b5abfcf7243f049a4ef3cf3979a
diff --git a/libs/hwui/Vertex.h b/libs/hwui/Vertex.h index 208d2a8..ffd0633 100644 --- a/libs/hwui/Vertex.h +++ b/libs/hwui/Vertex.h
@@ -41,6 +41,11 @@ 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