Index: gm/clippedbitmapshaders.cpp |
diff --git a/gm/clippedbitmapshaders.cpp b/gm/clippedbitmapshaders.cpp |
index 6225abeec1b983e31b8539b4b40afd5978ad6bea..4b77aba9d05f6e860d08f2c8ed4cd75aedc71459 100644 |
--- a/gm/clippedbitmapshaders.cpp |
+++ b/gm/clippedbitmapshaders.cpp |
@@ -82,11 +82,8 @@ protected: |
s.reset(); |
s.setScale(8, 8); |
s.postTranslate(SLIDE_SIZE / 2, SLIDE_SIZE / 2); |
- SkShader* shader = SkShader::CreateBitmapShader( |
- bmp, fMode, fMode, &s); |
- |
SkPaint paint; |
- paint.setShader(shader)->unref(); |
+ paint.setShader(SkShader::MakeBitmapShader(bmp, fMode, fMode, &s)); |
if (fHQ) { |
paint.setFilterQuality(kHigh_SkFilterQuality); |