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 mus.mojom; | 5 module mus.mojom; |
6 | 6 |
7 import "components/mus/public/interfaces/channel_handle.mojom"; | 7 import "components/mus/public/interfaces/channel_handle.mojom"; |
8 import "components/mus/public/interfaces/gpu.mojom"; | 8 import "components/mus/public/interfaces/gpu.mojom"; |
9 import "components/mus/public/interfaces/gpu_memory_buffer.mojom"; | 9 import "components/mus/public/interfaces/gpu_memory_buffer.mojom"; |
10 import "gpu/ipc/common/sync_token.mojom"; | 10 import "gpu/ipc/common/sync_token.mojom"; |
11 import "ui/mojo/geometry/geometry.mojom"; | 11 import "ui/gfx/geometry/mojo/geometry.mojom"; |
12 | 12 |
13 interface GpuService { | 13 interface GpuService { |
14 // Tells the GPU service to create a new channel for communication with a | 14 // Tells the GPU service to create a new channel for communication with a |
15 // client. The GPU service responds asynchronously with IPC handle and | 15 // client. The GPU service responds asynchronously with IPC handle and |
16 // GPUInfo. | 16 // GPUInfo. |
17 EstablishGpuChannel(bool prempts, | 17 EstablishGpuChannel(bool prempts, |
18 bool allow_view_command_buffers, | 18 bool allow_view_command_buffers, |
19 bool allow_real_time_streams) | 19 bool allow_real_time_streams) |
20 => (ChannelHandle channel_handle, GpuInfo gpu_info); | 20 => (ChannelHandle channel_handle, GpuInfo gpu_info); |
21 | 21 |
(...skipping 10 matching lines...) Expand all Loading... |
32 CreateGpuMemoryBufferFromHandle( | 32 CreateGpuMemoryBufferFromHandle( |
33 GpuMemoryBufferHandle buffer_handle, | 33 GpuMemoryBufferHandle buffer_handle, |
34 GpuMemoryBufferId id, | 34 GpuMemoryBufferId id, |
35 mojo.Size size, | 35 mojo.Size size, |
36 BufferFormat format) => (GpuMemoryBufferHandle buffer_handle); | 36 BufferFormat format) => (GpuMemoryBufferHandle buffer_handle); |
37 | 37 |
38 // Tells the GPU process to destroy GPU memory buffer. | 38 // Tells the GPU process to destroy GPU memory buffer. |
39 DestroyGpuMemoryBuffer(GpuMemoryBufferId id, | 39 DestroyGpuMemoryBuffer(GpuMemoryBufferId id, |
40 gpu.mojom.SyncToken sync_token); | 40 gpu.mojom.SyncToken sync_token); |
41 }; | 41 }; |
OLD | NEW |