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

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

Issue 2970353002: Add GpuMemoryBuffer support for DXGI handles.
Patch Set: update build config Created 3 years, 4 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 | « ui/gfx/gpu_memory_buffer.cc ('k') | ui/gfx/mojo/buffer_types_struct_traits.h » ('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 27 matching lines...) Expand all
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
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 };
OLDNEW
« no previous file with comments | « ui/gfx/gpu_memory_buffer.cc ('k') | ui/gfx/mojo/buffer_types_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698