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