| Index: ui/surface/transport_dib_win.cc
|
| diff --git a/ui/surface/transport_dib_win.cc b/ui/surface/transport_dib_win.cc
|
| index 61f5a1b24295e639effc3650bed1965dd05d828f..f845480620fb0ad3033ab6de318217bdc2bf560a 100644
|
| --- a/ui/surface/transport_dib_win.cc
|
| +++ b/ui/surface/transport_dib_win.cc
|
| @@ -68,9 +68,10 @@ std::unique_ptr<SkCanvas> TransportDIB::GetPlatformCanvas(int w,
|
| // We can't check the canvas size before mapping, but it's safe because
|
| // Windows will fail to map the section if the dimensions of the canvas
|
| // are too large.
|
| - std::unique_ptr<SkCanvas> canvas = skia::CreatePlatformCanvas(
|
| - w, h, opaque, shared_memory_.handle().GetHandle(),
|
| - skia::RETURN_NULL_ON_FAILURE);
|
| + std::unique_ptr<SkCanvas> canvas =
|
| + skia::CreatePlatformCanvasWithSharedSection(
|
| + w, h, opaque, shared_memory_.handle().GetHandle(),
|
| + skia::RETURN_NULL_ON_FAILURE);
|
|
|
| // Calculate the size for the memory region backing the canvas.
|
| if (canvas)
|
|
|