OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 module gfx.mojom; | 5 module gfx.mojom; |
6 | 6 |
7 // gfx::BufferFormat | 7 // gfx::BufferFormat |
8 enum BufferFormat { | 8 enum BufferFormat { |
9 ATC, | 9 ATC, |
10 ATCIA, | 10 ATCIA, |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // A file descriptor for the underlying memory object (usually dmabuf). | 65 // A file descriptor for the underlying memory object (usually dmabuf). |
66 array<handle> fds; | 66 array<handle> fds; |
67 | 67 |
68 array<NativePixmapPlane> planes; | 68 array<NativePixmapPlane> planes; |
69 }; | 69 }; |
70 | 70 |
71 // gfx::GpuMemoryBufferHandle | 71 // gfx::GpuMemoryBufferHandle |
72 struct GpuMemoryBufferHandle { | 72 struct GpuMemoryBufferHandle { |
73 GpuMemoryBufferType type; | 73 GpuMemoryBufferType type; |
74 GpuMemoryBufferId id; | 74 GpuMemoryBufferId id; |
75 handle? shared_memory_handle; | 75 handle<shared_buffer>? shared_memory_handle; |
76 uint32 offset; | 76 uint32 offset; |
77 uint32 stride; | 77 uint32 stride; |
78 NativePixmapHandle? native_pixmap_handle; | 78 NativePixmapHandle? native_pixmap_handle; |
79 handle? mach_port; | 79 handle? mach_port; |
80 }; | 80 }; |
OLD | NEW |