Index: bench/RectBench.cpp |
diff --git a/bench/RectBench.cpp b/bench/RectBench.cpp |
index 5bd5640eea9ab5dfa99e4c6371967110063267d3..a700b369e4999397b6bd2f40d75b56718d20a766 100644 |
--- a/bench/RectBench.cpp |
+++ b/bench/RectBench.cpp |
@@ -238,8 +238,10 @@ |
srcBM.allocN32Pixels(10, 1); |
srcBM.eraseColor(0xFF00FF00); |
- paint.setShader(SkShader::MakeBitmapShader(srcBM, SkShader::kClamp_TileMode, |
- SkShader::kClamp_TileMode)); |
+ SkShader* s; |
+ s = SkShader::CreateBitmapShader(srcBM, SkShader::kClamp_TileMode, |
+ SkShader::kClamp_TileMode); |
+ paint.setShader(s)->unref(); |
} |
for (int loop = 0; loop < loops; loop++) { |
for (size_t i = 0; i < sizes; i++) { |