OLD | NEW |
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 "gpu/ipc/common/gpu_info.mojom"; | 7 import "gpu/ipc/common/gpu_info.mojom"; |
| 8 import "gpu/ipc/common/surface_handle.mojom"; |
| 9 import "gpu/ipc/common/sync_token.mojom"; |
8 import "ui/gfx/geometry/mojo/geometry.mojom"; | 10 import "ui/gfx/geometry/mojo/geometry.mojom"; |
9 import "ui/gfx/mojo/buffer_types.mojom"; | 11 import "ui/gfx/mojo/buffer_types.mojom"; |
10 | 12 |
11 interface GpuServiceInternal { | 13 interface GpuServiceInternal { |
12 Initialize() => (gpu.mojom.GpuInfo gpu_info); | 14 Initialize() => (gpu.mojom.GpuInfo gpu_info); |
13 | 15 |
14 // Tells the GPU service to create a new channel for communication with a | 16 // Tells the GPU service to create a new channel for communication with a |
15 // client. The GPU service responds with an IPC handle. | 17 // client. The GPU service responds with an IPC handle. |
16 EstablishGpuChannel(int32 client_id, | 18 EstablishGpuChannel(int32 client_id, |
17 uint64 client_tracing_id, | 19 uint64 client_tracing_id, |
18 bool is_gpu_host) | 20 bool is_gpu_host) |
19 => (handle<message_pipe> channel_handle); | 21 => (handle<message_pipe> channel_handle); |
| 22 |
| 23 [Sync] |
| 24 CreateGpuMemoryBuffer(gfx.mojom.GpuMemoryBufferId id, |
| 25 gfx.mojom.Size size, |
| 26 gfx.mojom.BufferFormat format, |
| 27 gfx.mojom.BufferUsage usage, |
| 28 int32 client_id, |
| 29 gpu.mojom.SurfaceHandle surface_handle) |
| 30 => (gfx.mojom.GpuMemoryBufferHandle buffer_handle); |
| 31 |
| 32 DestroyGpuMemoryBuffer(gfx.mojom.GpuMemoryBufferId id, |
| 33 int32 client_id, |
| 34 gpu.mojom.SyncToken sync_token); |
20 }; | 35 }; |
OLD | NEW |