| 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 "cc/ipc/display_compositor.mojom"; | 7 import "cc/ipc/display_compositor.mojom"; |
| 8 import "gpu/ipc/common/gpu_info.mojom"; | 8 import "gpu/ipc/common/gpu_info.mojom"; |
| 9 import "gpu/ipc/common/memory_stats.mojom"; | 9 import "gpu/ipc/common/memory_stats.mojom"; |
| 10 import "gpu/ipc/common/surface_handle.mojom"; | 10 import "gpu/ipc/common/surface_handle.mojom"; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 int32 client_id, | 32 int32 client_id, |
| 33 gpu.mojom.SurfaceHandle surface_handle) | 33 gpu.mojom.SurfaceHandle surface_handle) |
| 34 => (gfx.mojom.GpuMemoryBufferHandle buffer_handle); | 34 => (gfx.mojom.GpuMemoryBufferHandle buffer_handle); |
| 35 | 35 |
| 36 DestroyGpuMemoryBuffer(gfx.mojom.GpuMemoryBufferId id, | 36 DestroyGpuMemoryBuffer(gfx.mojom.GpuMemoryBufferId id, |
| 37 int32 client_id, | 37 int32 client_id, |
| 38 gpu.mojom.SyncToken sync_token); | 38 gpu.mojom.SyncToken sync_token); |
| 39 | 39 |
| 40 GetVideoMemoryUsageStats() => (gpu.mojom.VideoMemoryUsageStats stats); | 40 GetVideoMemoryUsageStats() => (gpu.mojom.VideoMemoryUsageStats stats); |
| 41 | 41 |
| 42 RequestCompleteGpuInfo() => (gpu.mojom.GpuInfo gpu_info); |
| 43 |
| 42 // Notify GPU that a shader was loaded from disk. | 44 // Notify GPU that a shader was loaded from disk. |
| 43 LoadedShader(string data); | 45 LoadedShader(string data); |
| 44 | 46 |
| 45 // Tells GPU to release the surface because it's being destroyed. | 47 // Tells GPU to release the surface because it's being destroyed. |
| 46 DestroyingVideoSurface(int32 surface_id) => (); | 48 DestroyingVideoSurface(int32 surface_id) => (); |
| 47 | 49 |
| 48 // Tells GPU to wake up the GPU because we're about to draw. | 50 // Tells GPU to wake up the GPU because we're about to draw. |
| 49 WakeUpGpu(); | 51 WakeUpGpu(); |
| 50 | 52 |
| 51 DestroyAllChannels(); | 53 DestroyAllChannels(); |
| 52 | 54 |
| 53 Crash(); | 55 Crash(); |
| 54 Hang(); | 56 Hang(); |
| 55 ThrowJavaException(); | 57 ThrowJavaException(); |
| 56 Stop() => (); | 58 Stop() => (); |
| 57 }; | 59 }; |
| OLD | NEW |