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

Unified Diff: mojo/gles2/command_buffer_client_impl.cc

Issue 1320783002: Make SharedMemoryHandle a class on windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ipc_global
Patch Set: Fix DCHECK. 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
Index: mojo/gles2/command_buffer_client_impl.cc
diff --git a/mojo/gles2/command_buffer_client_impl.cc b/mojo/gles2/command_buffer_client_impl.cc
index b34d438078400d12ebb164b47afe11212a56bd4b..c4c228a310bba4f86c2769c8bc7455381662ed6b 100644
--- a/mojo/gles2/command_buffer_client_impl.cc
+++ b/mojo/gles2/command_buffer_client_impl.cc
@@ -272,7 +272,7 @@ int32_t CommandBufferClientImpl::CreateImage(ClientBuffer buffer,
base::SharedMemoryHandle dupd_handle =
base::SharedMemory::DuplicateHandle(handle.handle);
#if defined(OS_WIN)
- HANDLE platform_handle = dupd_handle;
+ HANDLE platform_handle = dupd_handle.GetHandle();
#else
int platform_handle = dupd_handle.fd;
#endif

Powered by Google App Engine
This is Rietveld 408576698