summaryrefslogtreecommitdiffstats
path: root/libs/hwui/ProgramCache.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-05-02 18:33:26 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-05-02 18:33:26 -0700
commitdf0a7fbdcff3c683641b7980da50a7d0eebe0876 (patch)
treebce1f0ec1aecb5735a1dd17a7a5a87f13d7a94b0 /libs/hwui/ProgramCache.h
parent8ef9eaaea8cc27145bf159e45b7d9eaa0aae6d5c (diff)
parent8f0095cd33558e9cc8a440047908e53b68906f5f (diff)
downloadframeworks_base-df0a7fbdcff3c683641b7980da50a7d0eebe0876.zip
frameworks_base-df0a7fbdcff3c683641b7980da50a7d0eebe0876.tar.gz
frameworks_base-df0a7fbdcff3c683641b7980da50a7d0eebe0876.tar.bz2
Merge "Allows to render with an OpenGL context inside a TextureView."
Diffstat (limited to 'libs/hwui/ProgramCache.h')
-rw-r--r--libs/hwui/ProgramCache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/ProgramCache.h b/libs/hwui/ProgramCache.h
index 2586636..5c7197b 100644
--- a/libs/hwui/ProgramCache.h
+++ b/libs/hwui/ProgramCache.h
@@ -78,6 +78,7 @@ namespace uirenderer {
#define PROGRAM_HAS_AA_SHIFT 37
#define PROGRAM_HAS_EXTERNAL_TEXTURE_SHIFT 38
+#define PROGRAM_HAS_TEXTURE_TRANSFORM_SHIFT 39
///////////////////////////////////////////////////////////////////////////////
// Types
@@ -116,6 +117,7 @@ struct ProgramDescription {
bool hasTexture;
bool hasAlpha8Texture;
bool hasExternalTexture;
+ bool hasTextureTransform;
// Modulate, this should only be set when setColor() return true
bool modulate;
@@ -155,6 +157,7 @@ struct ProgramDescription {
hasTexture = false;
hasAlpha8Texture = false;
hasExternalTexture = false;
+ hasTextureTransform = false;
isAA = false;
@@ -245,6 +248,7 @@ struct ProgramDescription {
if (isPoint) key |= programid(0x1) << PROGRAM_IS_POINT_SHIFT;
if (isAA) key |= programid(0x1) << PROGRAM_HAS_AA_SHIFT;
if (hasExternalTexture) key |= programid(0x1) << PROGRAM_HAS_EXTERNAL_TEXTURE_SHIFT;
+ if (hasTextureTransform) key |= programid(0x1) << PROGRAM_HAS_TEXTURE_TRANSFORM_SHIFT;
return key;
}