naiveproxy/services/viz/privileged/interfaces/compositing/display_private.mojom

24 lines
988 B
Plaintext
Raw Normal View History

2018-02-02 13:49:39 +03:00
// Copyright 2017 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 "mojo/common/time.mojom";
import "ui/gfx/mojo/color_space.mojom";
// See ui/compositor/compositor.h: ContextFactoryPrivate.
// The DisplayPrivate is used by privileged clients to talk to Display.
// DisplayPrivate would eventually replace or be used by ContextFactoryPrivate.
interface DisplayPrivate {
SetDisplayVisible(bool visible);
SetDisplayColorSpace(gfx.mojom.ColorSpace blending_color_space,
gfx.mojom.ColorSpace device_color_space);
SetOutputIsSecure(bool secure);
// Locks the BeginFrame vsync interval for this display to |interval| and
// ignores vsync interval information from other sources. This will do nothing
// if the display is using an external BeginFrame source.
SetAuthoritativeVSyncInterval(mojo.common.mojom.TimeDelta interval);
};