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

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

Issue 2801723002: GpuService: introduce GetGpuMemoryBufferAttribs as a mojo interface
Patch Set: GpuService: introduce GetGpuMemoryBufferAttribs as a mojo interface Created 3 years, 8 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 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 "gpu/ipc/common/gpu_info.mojom"; 7 import "gpu/ipc/common/gpu_info.mojom";
8 import "gpu/ipc/common/memory_stats.mojom"; 8 import "gpu/ipc/common/memory_stats.mojom";
9 import "gpu/ipc/common/surface_handle.mojom"; 9 import "gpu/ipc/common/surface_handle.mojom";
10 import "gpu/ipc/common/sync_token.mojom"; 10 import "gpu/ipc/common/sync_token.mojom";
(...skipping 17 matching lines...) Expand all
28 gfx.mojom.Size size, 28 gfx.mojom.Size size,
29 gfx.mojom.BufferFormat format, 29 gfx.mojom.BufferFormat format,
30 gfx.mojom.BufferUsage usage, 30 gfx.mojom.BufferUsage usage,
31 int32 client_id, 31 int32 client_id,
32 gpu.mojom.SurfaceHandle surface_handle) 32 gpu.mojom.SurfaceHandle surface_handle)
33 => (gfx.mojom.GpuMemoryBufferHandle buffer_handle); 33 => (gfx.mojom.GpuMemoryBufferHandle buffer_handle);
34 34
35 DestroyGpuMemoryBuffer(gfx.mojom.GpuMemoryBufferId id, 35 DestroyGpuMemoryBuffer(gfx.mojom.GpuMemoryBufferId id,
36 int32 client_id, 36 int32 client_id,
37 gpu.mojom.SyncToken sync_token); 37 gpu.mojom.SyncToken sync_token);
38 GetGpuMemoryBufferAttribs()
39 => (array<gfx.mojom.GpuMemoryBufferAttrib> supported_attribs);
38 40
39 GetVideoMemoryUsageStats() => (gpu.mojom.VideoMemoryUsageStats stats); 41 GetVideoMemoryUsageStats() => (gpu.mojom.VideoMemoryUsageStats stats);
40 42
41 RequestCompleteGpuInfo() => (gpu.mojom.GpuInfo gpu_info); 43 RequestCompleteGpuInfo() => (gpu.mojom.GpuInfo gpu_info);
42 44
43 // Notify GPU that a shader was loaded from disk. 45 // Notify GPU that a shader was loaded from disk.
44 LoadedShader(string data); 46 LoadedShader(string data);
45 47
46 // Tells GPU to release the surface because it's being destroyed. 48 // Tells GPU to release the surface because it's being destroyed.
47 DestroyingVideoSurface(int32 surface_id) => (); 49 DestroyingVideoSurface(int32 surface_id) => ();
48 50
49 // Tells GPU to wake up the GPU because we're about to draw. 51 // Tells GPU to wake up the GPU because we're about to draw.
50 WakeUpGpu(); 52 WakeUpGpu();
51 53
52 // Tells GPU that host has seen a GPU switch. This can happen when the display 54 // Tells GPU that host has seen a GPU switch. This can happen when the display
53 // is reconfigured, for example. 55 // is reconfigured, for example.
54 GpuSwitched(); 56 GpuSwitched();
55 57
56 DestroyAllChannels(); 58 DestroyAllChannels();
57 59
58 Crash(); 60 Crash();
59 Hang(); 61 Hang();
60 ThrowJavaException(); 62 ThrowJavaException();
61 Stop() => (); 63 Stop() => ();
62 }; 64 };
OLDNEW
« services/ui/gpu/gpu_service.cc ('K') | « services/ui/gpu/gpu_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698