mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 14:26:09 +03:00
42 lines
1.6 KiB
Plaintext
42 lines
1.6 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 "components/discardable_memory/public/interfaces/discardable_shared_memory_manager.mojom";
|
|
import "services/viz/public/interfaces/compositing/compositing_mode_watcher.mojom";
|
|
import "services/viz/privileged/interfaces/compositing/frame_sink_manager.mojom";
|
|
import "services/viz/privileged/interfaces/gl/gpu_host.mojom";
|
|
import "services/viz/privileged/interfaces/gl/gpu_service.mojom";
|
|
import "ui/gfx/mojo/font_render_params.mojom";
|
|
|
|
struct FrameSinkManagerParams {
|
|
// An id that changes for each viz process restart.
|
|
uint32 restart_id;
|
|
|
|
// Indicates whether CompositorFrames should activate after the deadline
|
|
// below passes.
|
|
bool use_activation_deadline = true;
|
|
|
|
// Default number of frames to CompositorFrame activation deadline.
|
|
uint32 activation_deadline_in_frames = 4;
|
|
|
|
// Host to viz interface.
|
|
FrameSinkManager& frame_sink_manager;
|
|
|
|
// Viz to host interface.
|
|
FrameSinkManagerClient frame_sink_manager_client;
|
|
};
|
|
|
|
// This is the primordial interface used to (re)start the viz services.
|
|
interface VizMain {
|
|
CreateFrameSinkManager(FrameSinkManagerParams params);
|
|
|
|
CreateGpuService(GpuService& gpu_service,
|
|
GpuHost gpu_host,
|
|
discardable_memory.mojom.DiscardableSharedMemoryManager discardable_memory_manager,
|
|
handle<shared_buffer>? activity_flags,
|
|
gfx.mojom.SubpixelRendering subpixel_rendering);
|
|
};
|