Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2444)

Unified Diff: bench/RepeatTileBench.cpp

Issue 1803763002: Finish conversion to sk_sp<SkShader> (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bench/RectBench.cpp ('k') | bench/TileBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/RepeatTileBench.cpp
diff --git a/bench/RepeatTileBench.cpp b/bench/RepeatTileBench.cpp
index 39830bf90f8a5c290284f08d2e2bd90e6da311ce..452c2c0079f93e91e08bcf1f2f8369eb79da37ae 100644
--- a/bench/RepeatTileBench.cpp
+++ b/bench/RepeatTileBench.cpp
@@ -120,10 +120,9 @@ protected:
fBitmap = tmp;
}
- SkShader* s = SkShader::CreateBitmapShader(fBitmap,
- SkShader::kRepeat_TileMode,
- SkShader::kRepeat_TileMode);
- fPaint.setShader(s)->unref();
+ fPaint.setShader(SkShader::MakeBitmapShader(fBitmap,
+ SkShader::kRepeat_TileMode,
+ SkShader::kRepeat_TileMode));
}
« no previous file with comments | « bench/RectBench.cpp ('k') | bench/TileBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698