add SK_DISABLE_DITHER_32BIT_GRADIENT flag. If defined, disables the newly added
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 17 Jan 2011 18:46:37 +0000 (18:46 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 17 Jan 2011 18:46:37 +0000 (18:46 +0000)
dithering for 32bit linear gradients.

git-svn-id: http://skia.googlecode.com/svn/trunk@699 2bbb7eff-a529-9590-31e7-b0007b416f81

src/effects/SkGradientShader.cpp

index 3f3b85f..81a8d68 100644 (file)
@@ -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
 
 ///////////////////////////////////////////////////////////////////////////