Index: gm/bmpfilterqualityrepeat.cpp |
diff --git a/gm/bmpfilterqualityrepeat.cpp b/gm/bmpfilterqualityrepeat.cpp |
index c147014a87b5c1c1ab5a3b27b9b5426994d041ff..b32a99a454848108e2778be3ae2874d18187e8f2 100644 |
--- a/gm/bmpfilterqualityrepeat.cpp |
+++ b/gm/bmpfilterqualityrepeat.cpp |
@@ -60,7 +60,7 @@ protected: |
lm.setTranslateY(330); |
static const SkShader::TileMode kTM = SkShader::kRepeat_TileMode; |
- bmpPaint.setShader(SkShader::CreateBitmapShader(fBmp, kTM, kTM, &lm))->unref(); |
+ bmpPaint.setShader(SkShader::MakeBitmapShader(fBmp, kTM, kTM, &lm)); |
SkRect rect = SkRect::MakeLTRB(20, 60, 220, 210); |
canvas->drawRect(rect, bmpPaint); |
paint.setAntiAlias(true); |