| Index: ui/gfx/mojo/buffer_types.mojom
|
| diff --git a/ui/gfx/mojo/buffer_types.mojom b/ui/gfx/mojo/buffer_types.mojom
|
| index 3a352df62957959989b1522a5631400398a48c48..4398e09ed8af48eaf1a919441fd881788c58721e 100644
|
| --- a/ui/gfx/mojo/buffer_types.mojom
|
| +++ b/ui/gfx/mojo/buffer_types.mojom
|
| @@ -49,3 +49,29 @@ enum GpuMemoryBufferType {
|
| struct GpuMemoryBufferId {
|
| int32 id;
|
| };
|
| +
|
| +// gfx::NativePixmapPlane
|
| +struct NativePixmapPlane {
|
| + uint32 stride;
|
| + int32 offset;
|
| + uint64 modifier;
|
| +};
|
| +
|
| +// gfx::NativePixmapHandle
|
| +struct NativePixmapHandle {
|
| + // A file descriptor for the underlying memory object (usually dmabuf).
|
| + array<handle> fds;
|
| +
|
| + array<NativePixmapPlane> planes;
|
| +};
|
| +
|
| +// gfx::GpuMemoryBufferHandle
|
| +struct GpuMemoryBufferHandle {
|
| + GpuMemoryBufferType type;
|
| + GpuMemoryBufferId id;
|
| + handle shared_memory_handle;
|
| + uint32 offset;
|
| + uint32 stride;
|
| + NativePixmapHandle? native_pixmap_handle;
|
| + // TODO: Add support for mach_port on mac.
|
| +};
|
|
|