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

Unified Diff: skia/ext/platform_canvas.h

Issue 1869753003: Replace many skia::RefPtr with sk_sp<> in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fmalita review - deconstify sk_sp<>s Created 4 years, 8 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: skia/ext/platform_canvas.h
diff --git a/skia/ext/platform_canvas.h b/skia/ext/platform_canvas.h
index 28027437fc7cb3d0a71ff0ec4c11ecb457b8b195..dedd5dc4249036001482974287fec97281b993cd 100644
--- a/skia/ext/platform_canvas.h
+++ b/skia/ext/platform_canvas.h
@@ -89,7 +89,7 @@ static inline SkCanvas* CreatePlatformCanvas(int width,
return CreatePlatformCanvas(width, height, is_opaque, 0, CRASH_ON_FAILURE);
}
-SK_API SkCanvas* CreateCanvas(const sk_sp<SkBaseDevice>& device,
+SK_API SkCanvas* CreateCanvas(sk_sp<SkBaseDevice>& device,
f(malita) 2016/04/21 15:45:47 const sk_sp<SkBaseDevice>& ( We normally use eith
danakj 2016/04/21 23:37:21 If you're not going to ref the thing, take a T* in
tomhudson 2016/04/25 20:20:51 Done.
OnFailureType failure_type);
static inline SkCanvas* CreateBitmapCanvas(int width,

Powered by Google App Engine
This is Rietveld 408576698