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

Unified Diff: skia/ext/skia_utils_mac.mm

Issue 2509983004: Revert "Change call-sites now that SkCanvas is not ref-counted" (Closed)
Patch Set: Created 4 years, 1 month 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 | « skia/ext/platform_canvas_unittest.cc ('k') | third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/skia_utils_mac.mm
diff --git a/skia/ext/skia_utils_mac.mm b/skia/ext/skia_utils_mac.mm
index 57fb7076ba219c4b5ccefb292200c69b5d644638..9ebdd7a227c8fc65edcd34b46e04a8892e31b246 100644
--- a/skia/ext/skia_utils_mac.mm
+++ b/skia/ext/skia_utils_mac.mm
@@ -190,7 +190,7 @@ SkBitmap CGImageToSkBitmap(CGImageRef image) {
int width = CGImageGetWidth(image);
int height = CGImageGetHeight(image);
- std::unique_ptr<SkCanvas> canvas(skia::CreatePlatformCanvas(
+ sk_sp<SkCanvas> canvas(skia::CreatePlatformCanvas(
nullptr, width, height, false, RETURN_NULL_ON_FAILURE));
ScopedPlatformPaint p(canvas.get());
CGContextRef context = p.GetNativeDrawingContext();
« no previous file with comments | « skia/ext/platform_canvas_unittest.cc ('k') | third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698