From 8f0095cd33558e9cc8a440047908e53b68906f5f Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Mon, 2 May 2011 17:24:22 -0700 Subject: Allows to render with an OpenGL context inside a TextureView. Change-Id: I59453f7fc3997f0502a1c5d325d37fed376fabc7 --- libs/hwui/ProgramCache.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/hwui/ProgramCache.h') diff --git a/libs/hwui/ProgramCache.h b/libs/hwui/ProgramCache.h index 70909fd622bf..21eb09921dc0 100644 --- a/libs/hwui/ProgramCache.h +++ b/libs/hwui/ProgramCache.h @@ -78,6 +78,7 @@ namespace uirenderer { #define PROGRAM_HAS_WIDTH_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; hasWidth = false; @@ -245,6 +248,7 @@ struct ProgramDescription { if (isPoint) key |= programid(0x1) << PROGRAM_IS_POINT_SHIFT; if (hasWidth) key |= programid(0x1) << PROGRAM_HAS_WIDTH_SHIFT; if (hasExternalTexture) key |= programid(0x1) << PROGRAM_HAS_EXTERNAL_TEXTURE_SHIFT; + if (hasTextureTransform) key |= programid(0x1) << PROGRAM_HAS_TEXTURE_TRANSFORM_SHIFT; return key; } -- cgit v1.2.3-59-g8ed1b