summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Program.h
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2012-12-10 17:56:27 -0800
committerChris Craik <ccraik@google.com>2013-02-06 15:35:12 -0800
commit65cd612face362d054a85d0f7e5881c59cd523be (patch)
tree8d71fb22d3a6dd515456a44b0d1010c906abb774 /libs/hwui/Program.h
parentc93c6aa5553203f05df871804517885fcc071cfd (diff)
downloadframeworks_base-65cd612face362d054a85d0f7e5881c59cd523be.zip
frameworks_base-65cd612face362d054a85d0f7e5881c59cd523be.tar.gz
frameworks_base-65cd612face362d054a85d0f7e5881c59cd523be.tar.bz2
Add cap tessellation support
bug:7117155 bug:8114304 Currently used for lines (with and without AA) and arcs with useCenter=false Also removes 0.375, 0.375 offset for AA lines Change-Id: Ic8ace418739344db1e2814edf65253fe7448b0b0
Diffstat (limited to 'libs/hwui/Program.h')
-rw-r--r--libs/hwui/Program.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/libs/hwui/Program.h b/libs/hwui/Program.h
index 7e3aacf..b1df980 100644
--- a/libs/hwui/Program.h
+++ b/libs/hwui/Program.h
@@ -81,8 +81,6 @@ namespace uirenderer {
#define PROGRAM_IS_SIMPLE_GRADIENT 41
-#define PROGRAM_IS_VERTEX_SHAPE_SHIFT 42
-
///////////////////////////////////////////////////////////////////////////////
// Types
///////////////////////////////////////////////////////////////////////////////
@@ -129,8 +127,7 @@ struct ProgramDescription {
bool hasBitmap;
bool isBitmapNpot;
- bool isAA;
- bool isVertexShape;
+ bool isAA; // drawing with a per-vertex alpha
bool hasGradient;
Gradient gradientType;
@@ -168,7 +165,6 @@ struct ProgramDescription {
hasTextureTransform = false;
isAA = false;
- isVertexShape = false;
modulate = false;
@@ -263,7 +259,6 @@ 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 (isVertexShape) key |= programid(0x1) << PROGRAM_IS_VERTEX_SHAPE_SHIFT;
return key;
}