| 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 ui.mojom; | 5 module ui.mojom; |
| 6 | 6 |
| 7 import "ui/gfx/mojo/buffer_types.mojom"; | 7 import "ui/gfx/mojo/buffer_types.mojom"; |
| 8 | 8 |
| 9 struct NativePixmapHandle { | 9 struct NativePixmapHandle { |
| 10 // A file descriptor for the underlying memory object (usually dmabuf). | 10 // A file descriptor for the underlying memory object (usually dmabuf). |
| 11 handle fd; | 11 handle fd; |
| 12 | 12 |
| 13 // The stride used when accessing the buffer via a memory mapping. | 13 // The stride used when accessing the buffer via a memory mapping. |
| 14 int32 stride; | 14 uint32 stride; |
| 15 }; | 15 }; |
| 16 | 16 |
| 17 | 17 |
| 18 struct GpuMemoryBufferHandle { | 18 struct GpuMemoryBufferHandle { |
| 19 gfx.mojom.GpuMemoryBufferType type; | 19 gfx.mojom.GpuMemoryBufferType type; |
| 20 gfx.mojom.GpuMemoryBufferId id; | 20 gfx.mojom.GpuMemoryBufferId id; |
| 21 handle buffer_handle; | 21 handle buffer_handle; |
| 22 uint32 offset; | 22 uint32 offset; |
| 23 int32 stride; | 23 uint32 stride; |
| 24 NativePixmapHandle? native_pixmap_handle; | 24 NativePixmapHandle? native_pixmap_handle; |
| 25 // TODO(fsamuel): Add support for Machports. | 25 // TODO(fsamuel): Add support for Machports. |
| 26 }; | 26 }; |
| OLD | NEW |