From: reed@google.com Date: Mon, 17 Jan 2011 18:46:37 +0000 (+0000) Subject: add SK_DISABLE_DITHER_32BIT_GRADIENT flag. If defined, disables the newly added X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~19066 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c7443db620742a6d76cb369c830faaf0be46e45;p=platform%2Fupstream%2FlibSkiaSharp.git 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 --- diff --git a/src/effects/SkGradientShader.cpp b/src/effects/SkGradientShader.cpp index 3f3b85f..81a8d68 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 ///////////////////////////////////////////////////////////////////////////