| 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 22 matching lines...) Expand all Loading... |
| 33 GPU_READ_CPU_READ_WRITE_PERSISTENT, | 33 GPU_READ_CPU_READ_WRITE_PERSISTENT, |
| 34 | 34 |
| 35 LAST = GPU_READ_CPU_READ_WRITE_PERSISTENT | 35 LAST = GPU_READ_CPU_READ_WRITE_PERSISTENT |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 // gfx::GpuMemoryBufferType | 38 // gfx::GpuMemoryBufferType |
| 39 enum GpuMemoryBufferType { | 39 enum GpuMemoryBufferType { |
| 40 EMPTY_BUFFER, | 40 EMPTY_BUFFER, |
| 41 SHARED_MEMORY_BUFFER, | 41 SHARED_MEMORY_BUFFER, |
| 42 IO_SURFACE_BUFFER, | 42 IO_SURFACE_BUFFER, |
| 43 SURFACE_TEXTURE_BUFFER, | |
| 44 OZONE_NATIVE_PIXMAP, | 43 OZONE_NATIVE_PIXMAP, |
| 45 LAST = OZONE_NATIVE_PIXMAP | 44 LAST = OZONE_NATIVE_PIXMAP |
| 46 }; | 45 }; |
| 47 | 46 |
| 48 // gfx::GpuMemoryBufferId | 47 // gfx::GpuMemoryBufferId |
| 49 struct GpuMemoryBufferId { | 48 struct GpuMemoryBufferId { |
| 50 int32 id; | 49 int32 id; |
| 51 }; | 50 }; |
| 52 | 51 |
| 53 // gfx::NativePixmapPlane | 52 // gfx::NativePixmapPlane |
| (...skipping 14 matching lines...) Expand all Loading... |
| 68 // gfx::GpuMemoryBufferHandle | 67 // gfx::GpuMemoryBufferHandle |
| 69 struct GpuMemoryBufferHandle { | 68 struct GpuMemoryBufferHandle { |
| 70 GpuMemoryBufferType type; | 69 GpuMemoryBufferType type; |
| 71 GpuMemoryBufferId id; | 70 GpuMemoryBufferId id; |
| 72 handle shared_memory_handle; | 71 handle shared_memory_handle; |
| 73 uint32 offset; | 72 uint32 offset; |
| 74 uint32 stride; | 73 uint32 stride; |
| 75 NativePixmapHandle? native_pixmap_handle; | 74 NativePixmapHandle? native_pixmap_handle; |
| 76 // TODO: Add support for mach_port on mac. | 75 // TODO: Add support for mach_port on mac. |
| 77 }; | 76 }; |
| OLD | NEW |