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