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

Unified Diff: bench/MergeBench.cpp

Issue 1842243002: Update SkImageSource to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT 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/DisplacementBench.cpp ('k') | gm/bigtileimagefilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/MergeBench.cpp
diff --git a/bench/MergeBench.cpp b/bench/MergeBench.cpp
index 061a4d36f3201478b230d590534168193ad235d3..70b474478404029fe7c2f115fba66f754c0a136c 100644
--- a/bench/MergeBench.cpp
+++ b/bench/MergeBench.cpp
@@ -80,9 +80,8 @@ protected:
private:
sk_sp<SkImageFilter> mergeBitmaps() {
- sk_sp<SkImageFilter> first(SkImageSource::Create(fCheckerboard.get()));
- sk_sp<SkImageFilter> second(SkImageSource::Create(fImage.get()));
- return SkMergeImageFilter::Make(std::move(first), std::move(second));
+ return SkMergeImageFilter::Make(SkImageSource::Make(fCheckerboard),
+ SkImageSource::Make(fImage));
}
bool fIsSmall;
« no previous file with comments | « bench/DisplacementBench.cpp ('k') | gm/bigtileimagefilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698