Index: gm/tilemodes.cpp |
diff --git a/gm/tilemodes.cpp b/gm/tilemodes.cpp |
index e04c52ae0fd6e5423ed9016e254e860bb92d20df..99d3a4708b1c48c3a51467468a87c19b3b7d058c 100644 |
--- a/gm/tilemodes.cpp |
+++ b/gm/tilemodes.cpp |
@@ -16,7 +16,6 @@ |
// effects |
#include "SkGradientShader.h" |
-#include "SkUnitMappers.h" |
#include "SkBlurDrawLooper.h" |
static void makebm(SkBitmap* bm, SkColorType ct, int w, int h) { |
@@ -29,16 +28,9 @@ static void makebm(SkBitmap* bm, SkColorType ct, int w, int h) { |
SkScalar pos[] = { 0, SK_Scalar1/2, SK_Scalar1 }; |
SkPaint paint; |
- SkUnitMapper* um = NULL; |
- |
- um = new SkCosineMapper; |
-// um = new SkDiscreteMapper(12); |
- |
- SkAutoUnref au(um); |
- |
paint.setDither(true); |
paint.setShader(SkGradientShader::CreateLinear(pts, colors, pos, |
- SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode, um))->unref(); |
+ SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode))->unref(); |
canvas.drawPaint(paint); |
} |