Index: gm/skbug_257.cpp |
diff --git a/gm/skbug_257.cpp b/gm/skbug_257.cpp |
index b11487d6c561d05614e7a4e7aa9e7f9027135996..052884236a8c22a3fb2130f6c9fa8ad560c07e19 100644 |
--- a/gm/skbug_257.cpp |
+++ b/gm/skbug_257.cpp |
@@ -21,9 +21,10 @@ |
SkMatrix matrix; |
matrix.setScale(0.75f, 0.75f); |
matrix.preRotate(30.0f); |
- paint->setShader( |
- SkShader::MakeBitmapShader(bm, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode, |
- &matrix)); |
+ SkAutoTUnref<SkShader> shader( |
+ SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode, |
+ SkShader::kRepeat_TileMode, &matrix)); |
+ paint->setShader(shader); |
} |
static void exercise_draw_pos_text(SkCanvas* canvas, |