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