diff options
Diffstat (limited to 'libs/hwui/Texture.h')
-rw-r--r-- | libs/hwui/Texture.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/hwui/Texture.h b/libs/hwui/Texture.h index 8d88bdc..dd39cae 100644 --- a/libs/hwui/Texture.h +++ b/libs/hwui/Texture.h @@ -22,6 +22,8 @@ namespace android { namespace uirenderer { +class UvMapper; + /** * Represents an OpenGL texture. */ @@ -42,6 +44,8 @@ struct Texture { firstWrap = true; id = 0; + + uvMapper = NULL; } void setWrap(GLenum wrap, bool bindTexture = false, bool force = false, @@ -125,6 +129,11 @@ struct Texture { */ bool mipMap; + /** + * Optional, pointer to a texture coordinates mapper. + */ + const UvMapper* uvMapper; + private: /** * Last wrap modes set on this texture. Defaults to GL_CLAMP_TO_EDGE. |