| Index: content/plugin/webplugin_proxy.cc
|
| diff --git a/content/plugin/webplugin_proxy.cc b/content/plugin/webplugin_proxy.cc
|
| index dbfb39e7de59e229d73aa6637e9365781373dc5f..22e1890b031385027637ca4518b34a0db2b2f6e7 100644
|
| --- a/content/plugin/webplugin_proxy.cc
|
| +++ b/content/plugin/webplugin_proxy.cc
|
| @@ -418,14 +418,11 @@ void WebPluginProxy::CreateCanvasFromHandle(
|
| const TransportDIB::Handle& dib_handle,
|
| const gfx::Rect& window_rect,
|
| skia::RefPtr<skia::PlatformCanvas>* canvas) {
|
| - *canvas = skia::AdoptRef(
|
| - skia::CreatePlatformCanvas(window_rect.width(),
|
| - window_rect.height(),
|
| - true,
|
| - dib_handle,
|
| - skia::RETURN_NULL_ON_FAILURE));
|
| + *canvas = skia::AdoptRef(skia::CreatePlatformCanvas(
|
| + window_rect.width(), window_rect.height(), true, dib_handle.GetHandle(),
|
| + skia::RETURN_NULL_ON_FAILURE));
|
| // The canvas does not own the section so we need to close it now.
|
| - CloseHandle(dib_handle);
|
| + dib_handle.Close();
|
| }
|
|
|
| void WebPluginProxy::SetWindowlessBuffers(
|
|
|