Index: bench/GameBench.cpp |
diff --git a/bench/GameBench.cpp b/bench/GameBench.cpp |
index 84da73eecaa103b47076ba73a72322fed2f174a7..823f5b07c9457b5dfa2a0b150e7e32995f617f36 100644 |
--- a/bench/GameBench.cpp |
+++ b/bench/GameBench.cpp |
@@ -139,9 +139,9 @@ |
SkPaint p2; // for drawVertices path |
p2.setColor(0xFF000000); |
p2.setFilterQuality(kLow_SkFilterQuality); |
- p2.setShader(SkShader::MakeBitmapShader(fAtlas, |
- SkShader::kClamp_TileMode, |
- SkShader::kClamp_TileMode)); |
+ p2.setShader(SkShader::CreateBitmapShader(fAtlas, |
+ SkShader::kClamp_TileMode, |
+ SkShader::kClamp_TileMode))->unref(); |
for (int i = 0; i < loops; ++i, ++fNumSaved) { |
if (0 == i % kNumBeforeClear) { |