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

Unified Diff: services/ui/gpu/interfaces/gpu_service_internal.mojom

Issue 2360203003: services/ui: Add mojom API for creating/destroying gpu memory buffer. (Closed)
Patch Set: . Created 4 years, 3 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
« no previous file with comments | « services/ui/gpu/gpu_service_internal.cc ('k') | services/ui/ws/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/gpu/interfaces/gpu_service_internal.mojom
diff --git a/services/ui/gpu/interfaces/gpu_service_internal.mojom b/services/ui/gpu/interfaces/gpu_service_internal.mojom
index cafde2a42c89650abb759944299bcf2d3f6c612a..18474844f0bb5a4b94b9e77e8800d7fb3541dee8 100644
--- a/services/ui/gpu/interfaces/gpu_service_internal.mojom
+++ b/services/ui/gpu/interfaces/gpu_service_internal.mojom
@@ -5,6 +5,8 @@
module ui.mojom;
import "gpu/ipc/common/gpu_info.mojom";
+import "gpu/ipc/common/surface_handle.mojom";
+import "gpu/ipc/common/sync_token.mojom";
import "ui/gfx/geometry/mojo/geometry.mojom";
import "ui/gfx/mojo/buffer_types.mojom";
@@ -17,4 +19,17 @@ interface GpuServiceInternal {
uint64 client_tracing_id,
bool is_gpu_host)
=> (handle<message_pipe> channel_handle);
+
+ [Sync]
+ CreateGpuMemoryBuffer(gfx.mojom.GpuMemoryBufferId id,
+ gfx.mojom.Size size,
+ gfx.mojom.BufferFormat format,
+ gfx.mojom.BufferUsage usage,
+ int32 client_id,
+ gpu.mojom.SurfaceHandle surface_handle)
+ => (gfx.mojom.GpuMemoryBufferHandle buffer_handle);
+
+ DestroyGpuMemoryBuffer(gfx.mojom.GpuMemoryBufferId id,
+ int32 client_id,
+ gpu.mojom.SyncToken sync_token);
};
« no previous file with comments | « services/ui/gpu/gpu_service_internal.cc ('k') | services/ui/ws/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698