Index: bench/TileImageFilterBench.cpp |
diff --git a/bench/TileImageFilterBench.cpp b/bench/TileImageFilterBench.cpp |
index 350b0ac21483be30df0507d4035733a3903a041d..b9b38edd3574110ca8cf3a6664d24d7cffa81bb4 100644 |
--- a/bench/TileImageFilterBench.cpp |
+++ b/bench/TileImageFilterBench.cpp |
@@ -37,11 +37,9 @@ protected: |
void onDraw(int loops, SkCanvas* canvas) override { |
SkPaint paint; |
- SkAutoTUnref<SkImageFilter> tile(SkTileImageFilter::Create( |
- SkRect::MakeWH(50, 50), |
- SkRect::MakeWH(WIDTH, HEIGHT), |
- nullptr)); |
- paint.setImageFilter(tile); |
+ paint.setImageFilter(SkTileImageFilter::Make(SkRect::MakeWH(50, 50), |
+ SkRect::MakeWH(WIDTH, HEIGHT), |
+ nullptr)); |
for (int i = 0; i < loops; i++) { |
if (fTileSize > 0) { |