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

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

Issue 2723163002: gpu: Replace more chrome ipc with mojom api. (Closed)
Patch Set: . Created 3 years, 10 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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/gpu/interfaces/gpu_service.mojom
diff --git a/services/ui/gpu/interfaces/gpu_service.mojom b/services/ui/gpu/interfaces/gpu_service.mojom
index 56080ad748c9cd390c68676f113217d5a7e3fd18..46d3dc6d0cd4b3d2a0029c79ea01f79ef2d8b903 100644
--- a/services/ui/gpu/interfaces/gpu_service.mojom
+++ b/services/ui/gpu/interfaces/gpu_service.mojom
@@ -20,6 +20,10 @@ interface GpuService {
bool is_gpu_host)
=> (handle<message_pipe>? channel_handle);
+ // Tells the GPU process to close the channel identified by |client_id|.
+ // If no channel can be identified, do nothing.
+ CloseChannel(int32 client_id);
+
[Sync]
CreateGpuMemoryBuffer(gfx.mojom.GpuMemoryBufferId id,
gfx.mojom.Size size,
@@ -34,4 +38,13 @@ interface GpuService {
gpu.mojom.SyncToken sync_token);
GetVideoMemoryUsageStats() => (gpu.mojom.VideoMemoryUsageStats stats);
+
+ // Notify GPU that a shader was loaded from disk.
+ LoadedShader(string data);
+
+ // Tells GPU to release the surface because it's being destroyed.
+ DestroyingVideoSurface(int32 surface_id) => ();
+
+ // Tells GPU to wake up the GPU because we're about to draw.
+ WakeUpGpu();
};
« no previous file with comments | « services/ui/gpu/gpu_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698