From 65cd612face362d054a85d0f7e5881c59cd523be Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Mon, 10 Dec 2012 17:56:27 -0800 Subject: 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 --- libs/hwui/Program.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libs/hwui/Program.h') diff --git a/libs/hwui/Program.h b/libs/hwui/Program.h index 7e3aacf90260..b1df98057b38 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; } -- cgit v1.2.3-59-g8ed1b