Index: bench/SkLinearBitmapPipelineBench.cpp |
diff --git a/bench/SkLinearBitmapPipelineBench.cpp b/bench/SkLinearBitmapPipelineBench.cpp |
index 660245ebef2179724e10858ec3584c725784edee..0c60eed302b676733463d3aaff664c1cc2dc3877 100644 |
--- a/bench/SkLinearBitmapPipelineBench.cpp |
+++ b/bench/SkLinearBitmapPipelineBench.cpp |
@@ -176,13 +176,12 @@ struct SkBitmapFPOrigShader : public CommonBitmapFPBenchmark { |
SkImage* image = SkImage::NewRasterCopy( |
fInfo, fBitmap.get(), sizeof(SkPMColor) * fSrcSize.fWidth); |
fImage.reset(image); |
- SkShader* shader = fImage->newShader(fXTile, fYTile); |
+ fPaint.setShader(fImage->makeShader(fXTile, fYTile)); |
if (fUseBilerp) { |
fPaint.setFilterQuality(SkFilterQuality::kLow_SkFilterQuality); |
} else { |
fPaint.setFilterQuality(SkFilterQuality::kNone_SkFilterQuality); |
} |
- fPaint.setShader(shader)->unref(); |
} |
void onPostDraw(SkCanvas*) override { |