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

Unified Diff: services/ui/public/interfaces/gpu_memory_buffer.mojom

Issue 2295923002: gfx: Struct traits for GpuMemoryBufferId and GpuMemoryBufferType. (Closed)
Patch Set: fix build Created 4 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 side-by-side diff with in-line comments
Download patch
Index: services/ui/public/interfaces/gpu_memory_buffer.mojom
diff --git a/services/ui/public/interfaces/gpu_memory_buffer.mojom b/services/ui/public/interfaces/gpu_memory_buffer.mojom
index 683da1195dd087fe2c78c467971ee561e5dbf220..c4685113b8d365bfd689c561315680f83e06e886 100644
--- a/services/ui/public/interfaces/gpu_memory_buffer.mojom
+++ b/services/ui/public/interfaces/gpu_memory_buffer.mojom
@@ -4,18 +4,7 @@
module ui.mojom;
-enum GpuMemoryBufferType {
- EMPTY,
- SHARED_MEMORY,
- IO_SURFACE,
- SURFACE_TEXTURE,
- OZONE_NATIVE_PIXMAP,
- LAST = OZONE_NATIVE_PIXMAP
-};
-
-struct GpuMemoryBufferId {
- int32 id;
-};
+import "ui/gfx/mojo/buffer_types.mojom";
struct NativePixmapHandle {
// A file descriptor for the underlying memory object (usually dmabuf).
@@ -27,8 +16,8 @@ struct NativePixmapHandle {
struct GpuMemoryBufferHandle {
- GpuMemoryBufferType type;
- GpuMemoryBufferId id;
+ gfx.mojom.GpuMemoryBufferType type;
+ gfx.mojom.GpuMemoryBufferId id;
handle buffer_handle;
uint32 offset;
int32 stride;
« no previous file with comments | « services/ui/gpu/interfaces/gpu_service_internal.mojom ('k') | services/ui/public/interfaces/gpu_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698