summaryrefslogtreecommitdiff
path: root/libs/hwui/Program.h
diff options
context:
space:
mode:
author Chris Craik <ccraik@google.com> 2012-09-21 11:03:59 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2012-09-21 11:03:59 -0700
commit61d37041ac76a95aedb98d3550bb5efa33d898a1 (patch)
treecffd7916bceba166b3cff01054a092ca52c7bc44 /libs/hwui/Program.h
parent739bc9e3f51c203fc0b58c30d67cacda985e95c6 (diff)
parent710f46d9d6a5bf9ea1c1833384caf61e1934124f (diff)
Merge "Polygonal rendering of simple fill shapes" into jb-mr1-dev
Diffstat (limited to 'libs/hwui/Program.h')
-rw-r--r--libs/hwui/Program.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/hwui/Program.h b/libs/hwui/Program.h
index a821a9cab5b6..b1cb44690265 100644
--- a/libs/hwui/Program.h
+++ b/libs/hwui/Program.h
@@ -81,7 +81,7 @@ namespace uirenderer {
#define PROGRAM_IS_SIMPLE_GRADIENT 41
-#define PROGRAM_IS_AA_RECT_SHIFT 42
+#define PROGRAM_IS_VERTEX_SHAPE_SHIFT 42
///////////////////////////////////////////////////////////////////////////////
// Types
@@ -130,7 +130,7 @@ struct ProgramDescription {
bool isBitmapNpot;
bool isAA;
- bool isAARect;
+ bool isVertexShape;
bool hasGradient;
Gradient gradientType;
@@ -168,7 +168,7 @@ struct ProgramDescription {
hasTextureTransform = false;
isAA = false;
- isAARect = false;
+ isVertexShape = false;
modulate = false;
@@ -263,7 +263,7 @@ struct ProgramDescription {
if (hasTextureTransform) key |= programid(0x1) << PROGRAM_HAS_TEXTURE_TRANSFORM_SHIFT;
if (hasGammaCorrection) key |= programid(0x1) << PROGRAM_HAS_GAMMA_CORRECTION;
if (isSimpleGradient) key |= programid(0x1) << PROGRAM_IS_SIMPLE_GRADIENT;
- if (isAARect) key |= programid(0x1) << PROGRAM_IS_AA_RECT_SHIFT;
+ if (isVertexShape) key |= programid(0x1) << PROGRAM_IS_VERTEX_SHAPE_SHIFT;
return key;
}