Chromium Code Reviews| Index: ui/surface/transport_dib_posix.cc |
| diff --git a/ui/surface/transport_dib_posix.cc b/ui/surface/transport_dib_posix.cc |
| index da370c96698e87a4aee7381272494c61c1bf07d8..e58f5054fd5dbdc6c73f7194f6bc66b7fe570838 100644 |
| --- a/ui/surface/transport_dib_posix.cc |
| +++ b/ui/surface/transport_dib_posix.cc |
| @@ -63,7 +63,8 @@ SkCanvas* TransportDIB::GetPlatformCanvas(int w, int h, bool opaque) { |
| return NULL; |
| return skia::CreatePlatformCanvas(w, h, opaque, |
| reinterpret_cast<uint8_t*>(memory()), |
| - skia::RETURN_NULL_ON_FAILURE); |
| + skia::RETURN_NULL_ON_FAILURE) |
| + .release(); |
|
danakj
2016/11/14 19:35:15
Please make GetPlatformCanvas return a unique_ptr
reed1
2016/11/14 20:50:08
Done.
|
| } |
| bool TransportDIB::Map() { |