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

Unified Diff: content/common/gpu/client/gpu_channel_host.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/common/dwrite_font_platform_win.cc ('k') | content/common/sandbox_init_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/client/gpu_channel_host.cc
diff --git a/content/common/gpu/client/gpu_channel_host.cc b/content/common/gpu/client/gpu_channel_host.cc
index 6b1706cdbb614fb320611d359ac5ceb45b6eb5f8..a87051af7dff62756f832c1099e98287a02e083f 100644
--- a/content/common/gpu/client/gpu_channel_host.cc
+++ b/content/common/gpu/client/gpu_channel_host.cc
@@ -334,14 +334,8 @@ base::SharedMemoryHandle GpuChannelHost::ShareToGpuProcess(
return base::SharedMemory::NULLHandle();
peer_pid = channel_->GetPeerPID();
}
-#if defined(OS_WIN)
- bool success =
- BrokerDuplicateHandle(source_handle, peer_pid, &target_handle,
- FILE_GENERIC_READ | FILE_GENERIC_WRITE, 0);
-#elif defined(OS_MACOSX)
bool success = BrokerDuplicateSharedMemoryHandle(source_handle, peer_pid,
&target_handle);
-#endif
if (!success)
return base::SharedMemory::NULLHandle();
« no previous file with comments | « content/common/dwrite_font_platform_win.cc ('k') | content/common/sandbox_init_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698