| 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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 LAST = GPU_READ_CPU_READ_WRITE_PERSISTENT | 39 LAST = GPU_READ_CPU_READ_WRITE_PERSISTENT |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 // gfx::GpuMemoryBufferType | 42 // gfx::GpuMemoryBufferType |
| 43 enum GpuMemoryBufferType { | 43 enum GpuMemoryBufferType { |
| 44 EMPTY_BUFFER, | 44 EMPTY_BUFFER, |
| 45 SHARED_MEMORY_BUFFER, | 45 SHARED_MEMORY_BUFFER, |
| 46 IO_SURFACE_BUFFER, | 46 IO_SURFACE_BUFFER, |
| 47 NATIVE_PIXMAP, | 47 NATIVE_PIXMAP, |
| 48 LAST = NATIVE_PIXMAP | 48 DXGI_HANDLE, |
| 49 LAST = DXGI_HANDLE |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 // gfx::GpuMemoryBufferId | 52 // gfx::GpuMemoryBufferId |
| 52 struct GpuMemoryBufferId { | 53 struct GpuMemoryBufferId { |
| 53 int32 id; | 54 int32 id; |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 // gfx::NativePixmapPlane | 57 // gfx::NativePixmapPlane |
| 57 struct NativePixmapPlane { | 58 struct NativePixmapPlane { |
| 58 uint32 stride; | 59 uint32 stride; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 71 | 72 |
| 72 // gfx::GpuMemoryBufferHandle | 73 // gfx::GpuMemoryBufferHandle |
| 73 struct GpuMemoryBufferHandle { | 74 struct GpuMemoryBufferHandle { |
| 74 GpuMemoryBufferType type; | 75 GpuMemoryBufferType type; |
| 75 GpuMemoryBufferId id; | 76 GpuMemoryBufferId id; |
| 76 handle<shared_buffer>? shared_memory_handle; | 77 handle<shared_buffer>? shared_memory_handle; |
| 77 uint32 offset; | 78 uint32 offset; |
| 78 uint32 stride; | 79 uint32 stride; |
| 79 NativePixmapHandle? native_pixmap_handle; | 80 NativePixmapHandle? native_pixmap_handle; |
| 80 handle? mach_port; | 81 handle? mach_port; |
| 82 handle? win32_handle; |
| 83 uint32 array_level; |
| 81 }; | 84 }; |
| OLD | NEW |