diff options
author | 2011-01-17 18:46:37 +0000 | |
---|---|---|
committer | 2011-01-17 18:46:37 +0000 | |
commit | 9c7443db620742a6d76cb369c830faaf0be46e45 (patch) | |
tree | a32e0670cce3fab4dc9645d605315f3050c12038 | |
parent | 21b0a2b4fe40189ce82c319210ef859babb6d904 (diff) |
add SK_DISABLE_DITHER_32BIT_GRADIENT flag. If defined, disables the newly added
dithering for 32bit linear gradients.
git-svn-id: http://skia.googlecode.com/svn/trunk@699 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | src/effects/SkGradientShader.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/effects/SkGradientShader.cpp b/src/effects/SkGradientShader.cpp index 3f3b85fccb..81a8d683f1 100644 --- a/src/effects/SkGradientShader.cpp +++ b/src/effects/SkGradientShader.cpp @@ -23,7 +23,9 @@ #include "SkTemplates.h" #include "SkBitmapCache.h" -#define USE_DITHER_32BIT_GRADIENT +#ifndef SK_DISABLE_DITHER_32BIT_GRADIENT + #define USE_DITHER_32BIT_GRADIENT +#endif /////////////////////////////////////////////////////////////////////////// |