Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: ui/gfx/mojo/buffer_types.mojom

Issue 2415443005: gfx: Fix sending an invalid GpuMemoryBufferHandle over mojo. (Closed)
Patch Set: . Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/gfx/mojo/buffer_types_traits.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // A file descriptor for the underlying memory object (usually dmabuf). 63 // A file descriptor for the underlying memory object (usually dmabuf).
64 array<handle> fds; 64 array<handle> fds;
65 65
66 array<NativePixmapPlane> planes; 66 array<NativePixmapPlane> planes;
67 }; 67 };
68 68
69 // gfx::GpuMemoryBufferHandle 69 // gfx::GpuMemoryBufferHandle
70 struct GpuMemoryBufferHandle { 70 struct GpuMemoryBufferHandle {
71 GpuMemoryBufferType type; 71 GpuMemoryBufferType type;
72 GpuMemoryBufferId id; 72 GpuMemoryBufferId id;
73 handle shared_memory_handle; 73 handle? shared_memory_handle;
74 uint32 offset; 74 uint32 offset;
75 uint32 stride; 75 uint32 stride;
76 NativePixmapHandle? native_pixmap_handle; 76 NativePixmapHandle? native_pixmap_handle;
77 // TODO: Add support for mach_port on mac. 77 // TODO: Add support for mach_port on mac.
78 }; 78 };
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/mojo/buffer_types_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698