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

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

Issue 2970353002: Add GpuMemoryBuffer support for DXGI handles.
Patch Set: add image texture target Created 3 years, 5 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
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 26 matching lines...) Expand all
37 37
38 LAST = GPU_READ_CPU_READ_WRITE_PERSISTENT 38 LAST = GPU_READ_CPU_READ_WRITE_PERSISTENT
39 }; 39 };
40 40
41 // gfx::GpuMemoryBufferType 41 // gfx::GpuMemoryBufferType
42 enum GpuMemoryBufferType { 42 enum GpuMemoryBufferType {
43 EMPTY_BUFFER, 43 EMPTY_BUFFER,
44 SHARED_MEMORY_BUFFER, 44 SHARED_MEMORY_BUFFER,
45 IO_SURFACE_BUFFER, 45 IO_SURFACE_BUFFER,
46 NATIVE_PIXMAP, 46 NATIVE_PIXMAP,
47 LAST = NATIVE_PIXMAP 47 DXGI_HANDLE,
dcheng 2017/07/12 08:46:19 Do you mind adding a TODO to make these Windows on
48 LAST = DXGI_HANDLE
48 }; 49 };
49 50
50 // gfx::GpuMemoryBufferId 51 // gfx::GpuMemoryBufferId
51 struct GpuMemoryBufferId { 52 struct GpuMemoryBufferId {
52 int32 id; 53 int32 id;
53 }; 54 };
54 55
55 // gfx::NativePixmapPlane 56 // gfx::NativePixmapPlane
56 struct NativePixmapPlane { 57 struct NativePixmapPlane {
57 uint32 stride; 58 uint32 stride;
(...skipping 12 matching lines...) Expand all
70 71
71 // gfx::GpuMemoryBufferHandle 72 // gfx::GpuMemoryBufferHandle
72 struct GpuMemoryBufferHandle { 73 struct GpuMemoryBufferHandle {
73 GpuMemoryBufferType type; 74 GpuMemoryBufferType type;
74 GpuMemoryBufferId id; 75 GpuMemoryBufferId id;
75 handle<shared_buffer>? shared_memory_handle; 76 handle<shared_buffer>? shared_memory_handle;
76 uint32 offset; 77 uint32 offset;
77 uint32 stride; 78 uint32 stride;
78 NativePixmapHandle? native_pixmap_handle; 79 NativePixmapHandle? native_pixmap_handle;
79 handle? mach_port; 80 handle? mach_port;
81 handle? win32_handle;
82 uint32 array_level;
80 }; 83 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698