Index: ui/gfx/mojo/buffer_types_struct_traits.cc |
diff --git a/ui/gfx/mojo/buffer_types_struct_traits.cc b/ui/gfx/mojo/buffer_types_struct_traits.cc |
index 5e3c0fcd6919c0493664b0283ec4bd3f206e5b25..ea726580f9d577167596d06a384f7a388f132654 100644 |
--- a/ui/gfx/mojo/buffer_types_struct_traits.cc |
+++ b/ui/gfx/mojo/buffer_types_struct_traits.cc |
@@ -128,11 +128,13 @@ bool StructTraits<gfx::mojom::GpuMemoryBufferHandleDataView, |
mojo::UnwrapPlatformFile(std::move(handle), &platform_file); |
if (unwrap_result != MOJO_RESULT_OK) |
return false; |
+ // TODO(rockot): Pass GUIDs through Mojo. https://crbug.com/713763. |
+ base::UnguessableToken guid = base::UnguessableToken::Create(); |
Ken Rockot(use gerrit already)
2017/05/04 17:54:50
I don't think this is correct. Note that this dese
erikchen
2017/05/04 19:21:13
I've left a TODO for myself to update the serializ
|
#if defined(OS_WIN) |
- out->handle = base::SharedMemoryHandle(platform_file); |
+ out->handle = base::SharedMemoryHandle(platform_file, guid); |
#else |
- out->handle = |
- base::SharedMemoryHandle(base::FileDescriptor(platform_file, true)); |
+ out->handle = base::SharedMemoryHandle( |
+ base::FileDescriptor(platform_file, true), guid); |
#endif |
#endif // defined(OS_MACOSX) |
} |