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

Side by Side Diff: services/ui/gpu/interfaces/gpu_service_internal.mojom

Issue 2481263002: Introduce Display Compositor mojo interface. Use InProcessContextProvider. (Closed)
Patch Set: Speculative fix for android build issue Created 4 years 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 ui.mojom; 5 module ui.mojom;
6 6
7 import "cc/ipc/display_compositor.mojom";
7 import "gpu/ipc/common/gpu_info.mojom"; 8 import "gpu/ipc/common/gpu_info.mojom";
8 import "gpu/ipc/common/surface_handle.mojom"; 9 import "gpu/ipc/common/surface_handle.mojom";
9 import "gpu/ipc/common/sync_token.mojom"; 10 import "gpu/ipc/common/sync_token.mojom";
10 import "ui/gfx/geometry/mojo/geometry.mojom"; 11 import "ui/gfx/geometry/mojo/geometry.mojom";
11 import "ui/gfx/mojo/buffer_types.mojom"; 12 import "ui/gfx/mojo/buffer_types.mojom";
12 13
13 interface GpuServiceInternal { 14 interface GpuServiceInternal {
14 Initialize() => (gpu.mojom.GpuInfo gpu_info); 15 Initialize() => (gpu.mojom.GpuInfo gpu_info);
15 16
16 // Tells the GPU service to create a new channel for communication with a 17 // Tells the GPU service to create a new channel for communication with a
17 // client. The GPU service responds with an IPC handle. 18 // client. The GPU service responds with an IPC handle.
18 EstablishGpuChannel(int32 client_id, 19 EstablishGpuChannel(int32 client_id,
19 uint64 client_tracing_id, 20 uint64 client_tracing_id,
20 bool is_gpu_host) 21 bool is_gpu_host)
21 => (handle<message_pipe> channel_handle); 22 => (handle<message_pipe> channel_handle);
22 23
23 [Sync] 24 [Sync]
24 CreateGpuMemoryBuffer(gfx.mojom.GpuMemoryBufferId id, 25 CreateGpuMemoryBuffer(gfx.mojom.GpuMemoryBufferId id,
25 gfx.mojom.Size size, 26 gfx.mojom.Size size,
26 gfx.mojom.BufferFormat format, 27 gfx.mojom.BufferFormat format,
27 gfx.mojom.BufferUsage usage, 28 gfx.mojom.BufferUsage usage,
28 int32 client_id, 29 int32 client_id,
29 gpu.mojom.SurfaceHandle surface_handle) 30 gpu.mojom.SurfaceHandle surface_handle)
30 => (gfx.mojom.GpuMemoryBufferHandle buffer_handle); 31 => (gfx.mojom.GpuMemoryBufferHandle buffer_handle);
31 32
32 DestroyGpuMemoryBuffer(gfx.mojom.GpuMemoryBufferId id, 33 DestroyGpuMemoryBuffer(gfx.mojom.GpuMemoryBufferId id,
33 int32 client_id, 34 int32 client_id,
34 gpu.mojom.SyncToken sync_token); 35 gpu.mojom.SyncToken sync_token);
36
37 // Tells the GPU process to create a display compositor.
38 CreateDisplayCompositor(
Tom Sepez 2016/11/22 18:39:15 Who has access to this interface?
Fady Samuel 2016/11/22 18:41:23 The window server only. All of GpuServiceInternal
39 cc.mojom.DisplayCompositor& display_compositor,
40 cc.mojom.DisplayCompositorClient display_compositor_client);
35 }; 41 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698