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

Unified Diff: ui/surface/transport_dib.h

Issue 2476113002: Change call-sites now that SkCanvas is not ref-counted (Closed)
Patch Set: address comments from #6 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
Index: ui/surface/transport_dib.h
diff --git a/ui/surface/transport_dib.h b/ui/surface/transport_dib.h
index a14be68fcbb55cd06dbd0e4733515ef8fbc8734a..a4b7ef3c73dd6bf60512e64a2aef8d8c6c3e7413 100644
--- a/ui/surface/transport_dib.h
+++ b/ui/surface/transport_dib.h
@@ -71,7 +71,7 @@ class SURFACE_EXPORT TransportDIB {
//
// Will return NULL on allocation failure. This could be because the image
// is too large to map into the current process' address space.
- SkCanvas* GetPlatformCanvas(int w, int h, bool opaque);
+ std::unique_ptr<SkCanvas> GetPlatformCanvas(int w, int h, bool opaque);
// Map the DIB into the current process if it is not already. This is used to
// map a DIB that has already been created. Returns true if the DIB is mapped.

Powered by Google App Engine
This is Rietveld 408576698