Index: gm/image_shader.cpp |
diff --git a/gm/image_shader.cpp b/gm/image_shader.cpp |
index 084bb95a1aa3aa1981cd630f531a07e6ba766cff..7ea020229611b796daa1318c0568ac51c94d3be2 100644 |
--- a/gm/image_shader.cpp |
+++ b/gm/image_shader.cpp |
@@ -101,10 +101,9 @@ protected: |
const SkShader::TileMode tile = SkShader::kRepeat_TileMode; |
const SkMatrix localM = SkMatrix::MakeTrans(-50, -50); |
- SkAutoTUnref<SkShader> shader(image->newShader(tile, tile, &localM)); |
SkPaint paint; |
+ paint.setShader(image->makeShader(tile, tile, &localM)); |
paint.setAntiAlias(true); |
- paint.setShader(shader); |
canvas->drawCircle(50, 50, 50, paint); |
} |