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

Unified Diff: content/renderer/skia_benchmarking_extension.cc

Issue 1823133002: Use sk_sp-based picture recording APIs in Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android_webview 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
Index: content/renderer/skia_benchmarking_extension.cc
diff --git a/content/renderer/skia_benchmarking_extension.cc b/content/renderer/skia_benchmarking_extension.cc
index f5180d0fd429123b35f52d5f8fea8fb036bc071d..30b7838488c45e9cabe39995c8b94c64f511279a 100644
--- a/content/renderer/skia_benchmarking_extension.cc
+++ b/content/renderer/skia_benchmarking_extension.cc
@@ -70,13 +70,14 @@ scoped_ptr<Picture> CreatePictureFromEncodedString(const std::string& encoded) {
base::Base64Decode(encoded, &decoded);
SkMemoryStream stream(decoded.data(), decoded.size());
- SkPicture* skpicture = SkPicture::CreateFromStream(&stream, &DecodeBitmap);
+ sk_sp<SkPicture> skpicture =
+ SkPicture::MakeFromStream(&stream, &DecodeBitmap);
if (!skpicture)
return nullptr;
scoped_ptr<Picture> picture(new Picture);
picture->layer_rect = gfx::SkIRectToRect(skpicture->cullRect().roundOut());
- picture->picture = skia::AdoptRef(skpicture);
+ picture->picture = skia::AdoptRef(std::move(skpicture));
return picture;
}

Powered by Google App Engine
This is Rietveld 408576698