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

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

Issue 2930143004: Add DIRECT_COMPOSITION GpuMemoryBuffer type.
Patch Set: fix build Created 3 years, 6 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 13 matching lines...) Expand all
24 YUV_420_BIPLANAR, 24 YUV_420_BIPLANAR,
25 UYVY_422, 25 UYVY_422,
26 26
27 LAST = UYVY_422 27 LAST = UYVY_422
28 }; 28 };
29 29
30 // gfx::BufferUsage 30 // gfx::BufferUsage
31 enum BufferUsage { 31 enum BufferUsage {
32 GPU_READ, 32 GPU_READ,
33 SCANOUT, 33 SCANOUT,
34 SCANOUT_ASYNC,
34 SCANOUT_CPU_READ_WRITE, 35 SCANOUT_CPU_READ_WRITE,
35 GPU_READ_CPU_READ_WRITE, 36 GPU_READ_CPU_READ_WRITE,
36 GPU_READ_CPU_READ_WRITE_PERSISTENT, 37 GPU_READ_CPU_READ_WRITE_PERSISTENT,
37 38
38 LAST = GPU_READ_CPU_READ_WRITE_PERSISTENT 39 LAST = GPU_READ_CPU_READ_WRITE_PERSISTENT
39 }; 40 };
40 41
41 // gfx::GpuMemoryBufferType 42 // gfx::GpuMemoryBufferType
42 enum GpuMemoryBufferType { 43 enum GpuMemoryBufferType {
43 EMPTY_BUFFER, 44 EMPTY_BUFFER,
44 SHARED_MEMORY_BUFFER, 45 SHARED_MEMORY_BUFFER,
45 IO_SURFACE_BUFFER, 46 IO_SURFACE_BUFFER,
46 NATIVE_PIXMAP, 47 NATIVE_PIXMAP,
47 LAST = NATIVE_PIXMAP 48 DIRECT_COMPOSITION,
49 LAST = DIRECT_COMPOSITION
48 }; 50 };
49 51
50 // gfx::GpuMemoryBufferId 52 // gfx::GpuMemoryBufferId
51 struct GpuMemoryBufferId { 53 struct GpuMemoryBufferId {
52 int32 id; 54 int32 id;
53 }; 55 };
54 56
55 // gfx::NativePixmapPlane 57 // gfx::NativePixmapPlane
56 struct NativePixmapPlane { 58 struct NativePixmapPlane {
57 uint32 stride; 59 uint32 stride;
(...skipping 13 matching lines...) Expand all
71 // gfx::GpuMemoryBufferHandle 73 // gfx::GpuMemoryBufferHandle
72 struct GpuMemoryBufferHandle { 74 struct GpuMemoryBufferHandle {
73 GpuMemoryBufferType type; 75 GpuMemoryBufferType type;
74 GpuMemoryBufferId id; 76 GpuMemoryBufferId id;
75 handle<shared_buffer>? shared_memory_handle; 77 handle<shared_buffer>? shared_memory_handle;
76 uint32 offset; 78 uint32 offset;
77 uint32 stride; 79 uint32 stride;
78 NativePixmapHandle? native_pixmap_handle; 80 NativePixmapHandle? native_pixmap_handle;
79 handle? mach_port; 81 handle? mach_port;
80 }; 82 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698