From 710f46d9d6a5bf9ea1c1833384caf61e1934124f Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Mon, 17 Sep 2012 17:25:49 -0700 Subject: Polygonal rendering of simple fill shapes bug:4419017 Change-Id: If0428e1732139786cba15f54b285d880e4a56b89 --- libs/hwui/Program.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libs/hwui/Program.h') 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; } -- cgit v1.2.3-59-g8ed1b