gfx: Use union in mojom::GpuMemoryBufferHandle
The Mojo union more closely matches the actual intent of GpuMemoryBufferHandle, since the handle can store only one of several types of platform handles. GpuMemoryBufferHandle has |id| member that should be present all the time, so mojom::GpuMemoryBufferHandle remains a Mojo struct and the union is embedded into it. Bug: 863011 Change-Id: I5dc9100392cd0a6f701e93ac4c91ca50e5077967 Reviewed-on: https://chromium-review.googlesource.com/c/1288609 Commit-Queue: Alexandr Ilin <alexilin@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#601130}
Showing
Please register or sign in to comment