diff options
author | Romain Guy <romainguy@google.com> | 2010-07-09 13:25:56 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2010-07-09 13:25:56 -0700 |
commit | 82ba814ca0dea659be2cc6523bc0137679d961ce (patch) | |
tree | 93d2375615c7c67ccda0506376eef2079366fa5b /libs/hwui/Vertex.h | |
parent | 020057bd534a41080af8edbe6c6565d478ef256c (diff) |
Optimize blending state changes.
Change-Id: I7c22a8aecccb8b5abfcf7243f049a4ef3cf3979a
Diffstat (limited to 'libs/hwui/Vertex.h')
-rw-r--r-- | libs/hwui/Vertex.h | 5 |
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 |