Index: bench/RepeatTileBench.cpp |
diff --git a/bench/RepeatTileBench.cpp b/bench/RepeatTileBench.cpp |
index 452c2c0079f93e91e08bcf1f2f8369eb79da37ae..39830bf90f8a5c290284f08d2e2bd90e6da311ce 100644 |
--- a/bench/RepeatTileBench.cpp |
+++ b/bench/RepeatTileBench.cpp |
@@ -120,9 +120,10 @@ |
fBitmap = tmp; |
} |
- fPaint.setShader(SkShader::MakeBitmapShader(fBitmap, |
- SkShader::kRepeat_TileMode, |
- SkShader::kRepeat_TileMode)); |
+ SkShader* s = SkShader::CreateBitmapShader(fBitmap, |
+ SkShader::kRepeat_TileMode, |
+ SkShader::kRepeat_TileMode); |
+ fPaint.setShader(s)->unref(); |
} |