Index: gm/shadertext2.cpp |
diff --git a/gm/shadertext2.cpp b/gm/shadertext2.cpp |
index d6a9a721cd4fe577a4f5540389cd1d72c8da618d..27b517517e5153bcda4ffaecf5d658b33695e497 100644 |
--- a/gm/shadertext2.cpp |
+++ b/gm/shadertext2.cpp |
@@ -7,7 +7,6 @@ |
#include "gm.h" |
#include "SkCanvas.h" |
#include "SkGradientShader.h" |
-#include "SkUnitMappers.h" |
namespace skiagm { |
@@ -26,14 +25,8 @@ static void makebm(SkBitmap* bm, int w, int h) { |
SkPaint paint; |
- SkUnitMapper* um = NULL; |
- |
- um = new SkCosineMapper; |
- |
- SkAutoUnref au(um); |
- |
paint.setShader(SkGradientShader::CreateLinear(kPts0, kColors0, kPos, |
- SK_ARRAY_COUNT(kColors0), SkShader::kClamp_TileMode, um))->unref(); |
+ SK_ARRAY_COUNT(kColors0), SkShader::kClamp_TileMode))->unref(); |
canvas.drawPaint(paint); |
paint.setShader(SkGradientShader::CreateLinear(kPts1, kColors1, kPos, |
SK_ARRAY_COUNT(kColors1), SkShader::kClamp_TileMode))->unref(); |