Chromium Code Reviews| 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 29 matching lines...) Expand all Loading... | |
| 40 GetVideoMemoryUsageStats() => (gpu.mojom.VideoMemoryUsageStats stats); | 40 GetVideoMemoryUsageStats() => (gpu.mojom.VideoMemoryUsageStats stats); |
| 41 | 41 |
| 42 // Notify GPU that a shader was loaded from disk. | 42 // Notify GPU that a shader was loaded from disk. |
| 43 LoadedShader(string data); | 43 LoadedShader(string data); |
| 44 | 44 |
| 45 // Tells GPU to release the surface because it's being destroyed. | 45 // Tells GPU to release the surface because it's being destroyed. |
| 46 DestroyingVideoSurface(int32 surface_id) => (); | 46 DestroyingVideoSurface(int32 surface_id) => (); |
| 47 | 47 |
| 48 // Tells GPU to wake up the GPU because we're about to draw. | 48 // Tells GPU to wake up the GPU because we're about to draw. |
| 49 WakeUpGpu(); | 49 WakeUpGpu(); |
| 50 | |
| 51 // Tells GPU to destroy all channels. | |
| 52 DestroyAllChannels(); | |
| 53 | |
| 54 Crash(); | |
|
Fady Samuel
2017/03/01 20:10:58
nit: comment on what this does?
| |
| 55 Hang(); | |
|
Fady Samuel
2017/03/01 20:10:58
nit: comment on what this does?
| |
| 56 ThrowJavaException(); | |
|
Fady Samuel
2017/03/01 20:10:58
nit: comment on what this does?
sadrul
2017/03/01 20:11:56
These should be obvious/unambiguous from the names
Fady Samuel
2017/03/01 20:14:42
Fair enough, although it could be argued "DestroyA
sadrul
2017/03/01 20:18:30
I agree that DestroyAllChannels() doesn't need the
| |
| 50 }; | 57 }; |
| OLD | NEW |