diff options
author | 2014-05-16 13:35:01 +0000 | |
---|---|---|
committer | 2014-05-16 13:35:01 +0000 | |
commit | ee0cac336c6a3a357ae3cb18be8ef4b3cb5edddb (patch) | |
tree | c71916deffeca1a48b45639e8cb373a188af57ac /experimental/SkiaExamples | |
parent | 61744ec1d2b0e287a652a419dac285c6a803e270 (diff) |
remove unused (by clients) SkUnitMapper
BUG=skia:
R=robertphillips@google.com, scroggo@google.com, george@mozilla.com
Author: reed@google.com
Review URL: https://codereview.chromium.org/283273002
git-svn-id: http://skia.googlecode.com/svn/trunk@14761 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/SkiaExamples')
-rw-r--r-- | experimental/SkiaExamples/HelloSkiaExample.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/experimental/SkiaExamples/HelloSkiaExample.cpp b/experimental/SkiaExamples/HelloSkiaExample.cpp index 0b6c790460..6fd2624c18 100644 --- a/experimental/SkiaExamples/HelloSkiaExample.cpp +++ b/experimental/SkiaExamples/HelloSkiaExample.cpp @@ -13,7 +13,6 @@ #include "SkDraw.h" #include "SkGradientShader.h" #include "SkGraphics.h" -#include "SkUnitMappers.h" class HelloSkia : public SkExample { public: @@ -50,12 +49,9 @@ protected: }; SkColor linearColors[] = {SK_ColorGREEN, SK_ColorBLACK}; - SkUnitMapper* linearMapper = new SkDiscreteMapper(100); - SkAutoUnref lm_deleter(linearMapper); - SkShader* shader = SkGradientShader::CreateLinear( linearPoints, linearColors, NULL, 2, - SkShader::kMirror_TileMode, linearMapper); + SkShader::kMirror_TileMode); SkAutoUnref shader_deleter(shader); paint.setShader(shader); |