Index: skia/ext/bitmap_platform_device_win.cc |
diff --git a/skia/ext/bitmap_platform_device_win.cc b/skia/ext/bitmap_platform_device_win.cc |
index 4687c920b32c060f6e0224a64e0ee4bc502b9cea..44a3ea5705e99d1e482add4fac3ea26938df67a2 100644 |
--- a/skia/ext/bitmap_platform_device_win.cc |
+++ b/skia/ext/bitmap_platform_device_win.cc |
@@ -207,11 +207,11 @@ SkBaseDevice* BitmapPlatformDevice::onCreateDevice(const CreateInfo& cinfo, |
// PlatformCanvas impl |
-SkCanvas* CreatePlatformCanvas(int width, |
- int height, |
- bool is_opaque, |
- HANDLE shared_section, |
- OnFailureType failureType) { |
+std::unique_ptr<SkCanvas> CreatePlatformCanvas(int width, |
+ int height, |
+ bool is_opaque, |
+ HANDLE shared_section, |
+ OnFailureType failureType) { |
sk_sp<SkBaseDevice> dev( |
BitmapPlatformDevice::Create(width, height, is_opaque, shared_section)); |
return CreateCanvas(dev, failureType); |