| 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 "gpu/ipc/common/gpu_feature_info.mojom"; |
| 7 import "gpu/ipc/common/gpu_info.mojom"; | 8 import "gpu/ipc/common/gpu_info.mojom"; |
| 8 import "gpu/ipc/common/surface_handle.mojom"; | 9 import "gpu/ipc/common/surface_handle.mojom"; |
| 9 import "services/ui/gpu/interfaces/context_lost_reason.mojom"; | 10 import "services/ui/gpu/interfaces/context_lost_reason.mojom"; |
| 10 import "url/mojo/url.mojom"; | 11 import "url/mojo/url.mojom"; |
| 11 | 12 |
| 12 // Communication channel from the gpu process to the gpu host. This interface | 13 // Communication channel from the gpu process to the gpu host. This interface |
| 13 // should never have any sync function calls. | 14 // should never have any sync function calls. |
| 14 interface GpuHost { | 15 interface GpuHost { |
| 15 DidInitialize(gpu.mojom.GpuInfo gpu_info); | 16 DidInitialize(gpu.mojom.GpuInfo gpu_info, |
| 17 gpu.mojom.GpuFeatureInfo gpu_feature_info); |
| 18 DidFailInitialize(); |
| 19 |
| 16 DidCreateOffscreenContext(url.mojom.Url url); | 20 DidCreateOffscreenContext(url.mojom.Url url); |
| 17 DidDestroyOffscreenContext(url.mojom.Url url); | 21 DidDestroyOffscreenContext(url.mojom.Url url); |
| 18 | 22 |
| 19 DidDestroyChannel(int32 client_id); | 23 DidDestroyChannel(int32 client_id); |
| 20 DidLoseContext(bool offscreen, | 24 DidLoseContext(bool offscreen, |
| 21 ContextLostReason reason, | 25 ContextLostReason reason, |
| 22 url.mojom.Url active_url); | 26 url.mojom.Url active_url); |
| 23 | 27 |
| 24 SetChildSurface(gpu.mojom.SurfaceHandle parent, | 28 SetChildSurface(gpu.mojom.SurfaceHandle parent, |
| 25 gpu.mojom.SurfaceHandle child); | 29 gpu.mojom.SurfaceHandle child); |
| 26 StoreShaderToDisk(int32 client_id, string key, string shader); | 30 StoreShaderToDisk(int32 client_id, string key, string shader); |
| 27 | 31 |
| 28 RecordLogMessage(int32 severity, string header, string message); | 32 RecordLogMessage(int32 severity, string header, string message); |
| 29 }; | 33 }; |
| OLD | NEW |