Index: ui/surface/transport_dib.h |
diff --git a/ui/surface/transport_dib.h b/ui/surface/transport_dib.h |
index a14be68fcbb55cd06dbd0e4733515ef8fbc8734a..3217b5ff8a663927af793dd61c5ab02c6f157c86 100644 |
--- a/ui/surface/transport_dib.h |
+++ b/ui/surface/transport_dib.h |
@@ -17,6 +17,8 @@ |
#include <windows.h> |
#endif |
+#include <memory> |
+ |
class SkCanvas; |
// ----------------------------------------------------------------------------- |
@@ -71,7 +73,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. |