diff options
| author | 2011-05-02 15:20:15 -0700 | |
|---|---|---|
| committer | 2011-05-02 15:20:15 -0700 | |
| commit | 7c212b2749e123733eb4cffb6f36fccb5945d6eb (patch) | |
| tree | b13ffe9b81072a5e15d24037fe5ce757f9e1b68e /libs/hwui/ProgramCache.h | |
| parent | 2542d0cd53e80cb3999deb7860d17e2c0cf3040f (diff) | |
| parent | 99585adeb4167ca357a72eb866f34c1af944f4b9 (diff) | |
Merge "Line endcaps for AA lines are now antialiased."
Diffstat (limited to 'libs/hwui/ProgramCache.h')
| -rw-r--r-- | libs/hwui/ProgramCache.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/hwui/ProgramCache.h b/libs/hwui/ProgramCache.h index 70909fd622bf..25866360c93f 100644 --- a/libs/hwui/ProgramCache.h +++ b/libs/hwui/ProgramCache.h @@ -75,7 +75,7 @@ namespace uirenderer { #define PROGRAM_IS_POINT_SHIFT 36 -#define PROGRAM_HAS_WIDTH_SHIFT 37 +#define PROGRAM_HAS_AA_SHIFT 37 #define PROGRAM_HAS_EXTERNAL_TEXTURE_SHIFT 38 @@ -124,7 +124,7 @@ struct ProgramDescription { bool hasBitmap; bool isBitmapNpot; - bool hasWidth; + bool isAA; bool hasGradient; Gradient gradientType; @@ -156,7 +156,7 @@ struct ProgramDescription { hasAlpha8Texture = false; hasExternalTexture = false; - hasWidth = false; + isAA = false; modulate = false; @@ -243,7 +243,7 @@ struct ProgramDescription { if (swapSrcDst) key |= PROGRAM_KEY_SWAP_SRC_DST; if (modulate) key |= programid(0x1) << PROGRAM_MODULATE_SHIFT; if (isPoint) key |= programid(0x1) << PROGRAM_IS_POINT_SHIFT; - if (hasWidth) key |= programid(0x1) << PROGRAM_HAS_WIDTH_SHIFT; + if (isAA) key |= programid(0x1) << PROGRAM_HAS_AA_SHIFT; if (hasExternalTexture) key |= programid(0x1) << PROGRAM_HAS_EXTERNAL_TEXTURE_SHIFT; return key; } |