mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 22:36:09 +03:00
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
// Copyright 2016 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
module viz.mojom;
|
|
|
|
import "gpu/ipc/common/gpu_feature_info.mojom";
|
|
import "gpu/ipc/common/gpu_info.mojom";
|
|
import "gpu/ipc/common/surface_handle.mojom";
|
|
import "services/viz/privileged/interfaces/gl/context_lost_reason.mojom";
|
|
import "url/mojo/url.mojom";
|
|
|
|
// Communication channel from the gpu process to the gpu host. This interface
|
|
// should never have any sync function calls.
|
|
interface GpuHost {
|
|
DidInitialize(gpu.mojom.GpuInfo gpu_info,
|
|
gpu.mojom.GpuFeatureInfo gpu_feature_info);
|
|
DidFailInitialize();
|
|
|
|
DidCreateContextSuccessfully();
|
|
DidCreateOffscreenContext(url.mojom.Url url);
|
|
DidDestroyOffscreenContext(url.mojom.Url url);
|
|
|
|
DidDestroyChannel(int32 client_id);
|
|
DidLoseContext(bool offscreen,
|
|
ContextLostReason reason,
|
|
url.mojom.Url active_url);
|
|
|
|
SetChildSurface(gpu.mojom.SurfaceHandle parent,
|
|
gpu.mojom.SurfaceHandle child);
|
|
StoreShaderToDisk(int32 client_id, string key, string shader);
|
|
|
|
RecordLogMessage(int32 severity, string header, string message);
|
|
};
|