diff options
author | reed <reed@google.com> | 2016-03-09 14:47:34 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-09 14:47:34 -0800 |
commit | 5671c5b9124f17d33bc14b6d347cdc6fe5d19dc8 (patch) | |
tree | 534c601a0a5f7d45cfc69d65485dc086f621cd24 /bench | |
parent | 6ceeebd37a43d879c120b6ba100ae1febdd67a18 (diff) |
SkImage now has makeShader to return sk_sp
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1785473002
Review URL: https://codereview.chromium.org/1785473002
Diffstat (limited to 'bench')
-rw-r--r-- | bench/SkLinearBitmapPipelineBench.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bench/SkLinearBitmapPipelineBench.cpp b/bench/SkLinearBitmapPipelineBench.cpp index 660245ebef..0c60eed302 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 { |