Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1861)

Unified Diff: content/plugin/webplugin_proxy.cc

Issue 1320783002: Make SharedMemoryHandle a class on windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ipc_global
Patch Set: Rebase. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/ppapi_plugin/ppapi_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/ppapi_plugin/ppapi_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698