Index: bench/TileBench.cpp |
diff --git a/bench/TileBench.cpp b/bench/TileBench.cpp |
index 6b91ada0c3c141a4f56f318eff281b8a9437121b..47e79c78d4d7020d49ef64c771f9f64f51444873 100644 |
--- a/bench/TileBench.cpp |
+++ b/bench/TileBench.cpp |
@@ -53,8 +53,7 @@ public: |
create_gradient(&bm); |
- SkShader* s = SkShader::CreateBitmapShader(bm, xTile, yTile); |
- fPaint.setShader(s)->unref(); |
+ fPaint.setShader(SkShader::MakeBitmapShader(bm, xTile, yTile)); |
fName.printf("constXTile_"); |