| Index: ui/surface/transport_dib_win.cc
|
| ===================================================================
|
| --- ui/surface/transport_dib_win.cc (revision 165342)
|
| +++ ui/surface/transport_dib_win.cc (working copy)
|
| @@ -70,10 +70,8 @@
|
| // will map it again.
|
| DCHECK(!memory()) << "Mapped file twice in the same process.";
|
|
|
| - scoped_ptr<skia::PlatformCanvas> canvas(new skia::PlatformCanvas);
|
| - if (!canvas->initialize(w, h, true, handle()))
|
| - return NULL;
|
| - return canvas.release();
|
| + return skia::CreatePlatformCanvas(w, h, true, handle(),
|
| + skia::RETURN_NULL_ON_FAILURE);
|
| }
|
|
|
| bool TransportDIB::Map() {
|
|
|