Index: components/mus/gles2/command_buffer_driver.cc |
diff --git a/components/mus/gles2/command_buffer_driver.cc b/components/mus/gles2/command_buffer_driver.cc |
index d634fcb21b23ca42ae6164ec79b878db0e958d7f..a03a357f1a24d01d21fa13f1d7a3a47fa5735c38 100644 |
--- a/components/mus/gles2/command_buffer_driver.cc |
+++ b/components/mus/gles2/command_buffer_driver.cc |
@@ -7,6 +7,7 @@ |
#include "base/bind.h" |
#include "base/macros.h" |
#include "base/memory/shared_memory.h" |
+#include "base/process/process_handle.h" |
#include "components/mus/gles2/command_buffer_type_conversions.h" |
#include "components/mus/gles2/gpu_memory_tracker.h" |
#include "components/mus/gles2/gpu_state.h" |
@@ -243,7 +244,8 @@ void CommandBufferDriver::CreateImage(int32_t id, |
} |
#if defined(OS_WIN) |
- gfx_handle.handle = platform_handle; |
+ gfx_handle.handle = |
+ base::SharedMemoryHandle(platform_handle, base::GetCurrentProcId()); |
#else |
gfx_handle.handle = base::FileDescriptor(platform_handle, false); |
#endif |