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

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

Issue 2559343003: mus: Rename GpuService to Gpu. (Closed)
Patch Set: . 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
« no previous file with comments | « services/ui/public/interfaces/BUILD.gn ('k') | services/ui/public/interfaces/gpu_service.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "gpu/ipc/common/gpu_info.mojom"; 7 import "gpu/ipc/common/gpu_info.mojom";
8 import "gpu/ipc/common/sync_token.mojom"; 8 import "gpu/ipc/common/sync_token.mojom";
9 import "ui/gfx/geometry/mojo/geometry.mojom"; 9 import "ui/gfx/geometry/mojo/geometry.mojom";
10 import "ui/gfx/mojo/buffer_types.mojom"; 10 import "ui/gfx/mojo/buffer_types.mojom";
11 11
12 interface GpuService { 12 interface Gpu {
13 // Tells the GPU service to create a new channel for communication with a 13 // Tells the GPU service to create a new channel for communication with a
14 // client. The GPU service responds with client ID, IPC handle and 14 // client. The GPU service responds with client ID, IPC handle and
15 // GPUInfo. 15 // GPUInfo.
16 [Sync] 16 [Sync]
17 EstablishGpuChannel() => (int32 client_id, 17 EstablishGpuChannel() => (int32 client_id,
18 handle<message_pipe>? channel_handle, 18 handle<message_pipe>? channel_handle,
19 gpu.mojom.GpuInfo gpu_info); 19 gpu.mojom.GpuInfo gpu_info);
20 20
21 // Tells the GPU service to create a new GPU memory buffer. 21 // Tells the GPU service to create a new GPU memory buffer.
22 CreateGpuMemoryBuffer(gfx.mojom.GpuMemoryBufferId id, 22 CreateGpuMemoryBuffer(gfx.mojom.GpuMemoryBufferId id,
23 gfx.mojom.Size size, 23 gfx.mojom.Size size,
24 gfx.mojom.BufferFormat format, 24 gfx.mojom.BufferFormat format,
25 gfx.mojom.BufferUsage usage) 25 gfx.mojom.BufferUsage usage)
26 => (gfx.mojom.GpuMemoryBufferHandle buffer_handle); 26 => (gfx.mojom.GpuMemoryBufferHandle buffer_handle);
27 27
28 // Tells the GPU process to destroy GPU memory buffer. 28 // Tells the GPU process to destroy GPU memory buffer.
29 DestroyGpuMemoryBuffer(gfx.mojom.GpuMemoryBufferId id, 29 DestroyGpuMemoryBuffer(gfx.mojom.GpuMemoryBufferId id,
30 gpu.mojom.SyncToken sync_token); 30 gpu.mojom.SyncToken sync_token);
31 }; 31 };
OLDNEW
« no previous file with comments | « services/ui/public/interfaces/BUILD.gn ('k') | services/ui/public/interfaces/gpu_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698