| 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 12 matching lines...) Expand all Loading... |
| 23 YUV_420_BIPLANAR, | 23 YUV_420_BIPLANAR, |
| 24 UYVY_422, | 24 UYVY_422, |
| 25 | 25 |
| 26 LAST = UYVY_422 | 26 LAST = UYVY_422 |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 // gfx::BufferUsage | 29 // gfx::BufferUsage |
| 30 enum BufferUsage { | 30 enum BufferUsage { |
| 31 GPU_READ, | 31 GPU_READ, |
| 32 SCANOUT, | 32 SCANOUT, |
| 33 SCANOUT_CPU_READ_WRITE, |
| 33 GPU_READ_CPU_READ_WRITE, | 34 GPU_READ_CPU_READ_WRITE, |
| 34 GPU_READ_CPU_READ_WRITE_PERSISTENT, | 35 GPU_READ_CPU_READ_WRITE_PERSISTENT, |
| 35 | 36 |
| 36 LAST = GPU_READ_CPU_READ_WRITE_PERSISTENT | 37 LAST = GPU_READ_CPU_READ_WRITE_PERSISTENT |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 // gfx::GpuMemoryBufferType | 40 // gfx::GpuMemoryBufferType |
| 40 enum GpuMemoryBufferType { | 41 enum GpuMemoryBufferType { |
| 41 EMPTY_BUFFER, | 42 EMPTY_BUFFER, |
| 42 SHARED_MEMORY_BUFFER, | 43 SHARED_MEMORY_BUFFER, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 69 // gfx::GpuMemoryBufferHandle | 70 // gfx::GpuMemoryBufferHandle |
| 70 struct GpuMemoryBufferHandle { | 71 struct GpuMemoryBufferHandle { |
| 71 GpuMemoryBufferType type; | 72 GpuMemoryBufferType type; |
| 72 GpuMemoryBufferId id; | 73 GpuMemoryBufferId id; |
| 73 handle? shared_memory_handle; | 74 handle? shared_memory_handle; |
| 74 uint32 offset; | 75 uint32 offset; |
| 75 uint32 stride; | 76 uint32 stride; |
| 76 NativePixmapHandle? native_pixmap_handle; | 77 NativePixmapHandle? native_pixmap_handle; |
| 77 handle? mach_port; | 78 handle? mach_port; |
| 78 }; | 79 }; |
| OLD | NEW |