/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ include GraphicsMessages; include protocol PCompositorBridge; include protocol PImageBridge; include protocol PVRManager; include protocol PVsyncBridge; using mozilla::TimeDuration from "mozilla/TimeStamp.h"; using mozilla::CSSToLayoutDeviceScale from "Units.h"; using mozilla::gfx::IntSize from "mozilla/gfx/2D.h"; namespace mozilla { namespace gfx { union GfxPrefValue { bool; int32_t; uint32_t; float; }; struct GfxPrefSetting { int32_t index; GfxPrefValue value; }; sync protocol PGPU { parent: // Sent by the UI process to initiate core settings. async Init(GfxPrefSetting[] prefs, GfxVarUpdate[] vars); async InitVsyncBridge(Endpoint endpoint); async InitImageBridge(Endpoint endpoint); async InitVRManager(Endpoint endpoint); // Called to update a gfx preference or variable. async UpdatePref(GfxPrefSetting pref); async UpdateVar(GfxVarUpdate var); // Create a new top-level compositor. async NewWidgetCompositor(Endpoint endpoint, CSSToLayoutDeviceScale scale, TimeDuration vsyncRate, bool useExternalSurface, IntSize surfaceSize); // Create a new content-process compositor bridge. async NewContentCompositorBridge(Endpoint endpoint); async NewContentImageBridge(Endpoint endpoint); async NewContentVRManager(Endpoint endpoint); }; } // namespace gfx } // namespace mozilla