Index: experimental/fiddle/draw.cpp |
diff --git a/experimental/fiddle/draw.cpp b/experimental/fiddle/draw.cpp |
index dfed793701a4ef10e5853a9f330473f03dff86da..78f428da2a6ad08853d34868500e5586185c571b 100644 |
--- a/experimental/fiddle/draw.cpp |
+++ b/experimental/fiddle/draw.cpp |
@@ -20,11 +20,9 @@ void draw(SkCanvas* canvas) { |
SkMatrix matrix; |
matrix.setScale(0.75f, 0.75f); |
matrix.preRotate(30.0f); |
- SkAutoTUnref<SkShader> shader( |
- image->newShader(SkShader::kRepeat_TileMode, |
- SkShader::kRepeat_TileMode, |
- &matrix)); |
SkPaint paint; |
- paint.setShader(shader); |
+ paint.setShader(image->makeShader(SkShader::kRepeat_TileMode, |
+ SkShader::kRepeat_TileMode, |
+ &matrix)); |
canvas->drawPaint(paint); |
} |