diff options
| author | 2011-04-21 11:52:59 -0700 | |
|---|---|---|
| committer | 2011-04-21 11:52:59 -0700 | |
| commit | bf96c356c02c430153c281fb81dc1a00f7ad0b43 (patch) | |
| tree | ae1ac4bbd2c2c28b1b498dc87d47564806155c3a /libs/hwui/ProgramCache.h | |
| parent | 52c03d2cb9a782366e804d1910a7c8f072b05353 (diff) | |
| parent | 5b0200bd47e8a9a4dc8d2e6c3a110d522b30bf82 (diff) | |
Merge "Enable anti-aliasing for hw-accelerated lines"
Diffstat (limited to 'libs/hwui/ProgramCache.h')
| -rw-r--r-- | libs/hwui/ProgramCache.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/ProgramCache.h b/libs/hwui/ProgramCache.h index 737d91ba12f9..cead75bcae2c 100644 --- a/libs/hwui/ProgramCache.h +++ b/libs/hwui/ProgramCache.h @@ -57,6 +57,7 @@ namespace uirenderer { #define PROGRAM_KEY_COLOR_BLEND 0x80 #define PROGRAM_KEY_BITMAP_NPOT 0x100 #define PROGRAM_KEY_SWAP_SRC_DST 0x2000 +#define PROGRAM_KEY_VERTEX_WIDTH 0x4000 #define PROGRAM_KEY_BITMAP_WRAPS_MASK 0x600 #define PROGRAM_KEY_BITMAP_WRAPT_MASK 0x1800 @@ -119,6 +120,8 @@ struct ProgramDescription { bool hasBitmap; bool isBitmapNpot; + bool hasWidth; + bool hasGradient; Gradient gradientType; @@ -148,6 +151,8 @@ struct ProgramDescription { hasTexture = false; hasAlpha8Texture = false; + hasWidth = false; + modulate = false; hasBitmap = false; @@ -200,6 +205,7 @@ struct ProgramDescription { programid key() const { programid key = 0; if (hasTexture) key |= PROGRAM_KEY_TEXTURE; + if (hasWidth) key |= PROGRAM_KEY_VERTEX_WIDTH; if (hasAlpha8Texture) key |= PROGRAM_KEY_A8_TEXTURE; if (hasBitmap) { key |= PROGRAM_KEY_BITMAP; |