2016-06-11 05:27:24 +03:00
|
|
|
/* -*- 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/. */
|
|
|
|
|
2016-07-18 07:24:28 +03:00
|
|
|
include protocol PCompositorBridge;
|
|
|
|
|
|
|
|
using mozilla::CSSToLayoutDeviceScale from "Units.h";
|
|
|
|
using mozilla::gfx::IntSize from "mozilla/gfx/2D.h";
|
2016-06-27 09:33:20 +03:00
|
|
|
|
2016-06-11 05:27:24 +03:00
|
|
|
namespace mozilla {
|
|
|
|
namespace gfx {
|
|
|
|
|
2016-06-27 09:33:20 +03:00
|
|
|
union GfxPrefValue {
|
|
|
|
bool;
|
|
|
|
int32_t;
|
|
|
|
uint32_t;
|
|
|
|
float;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct GfxPrefSetting {
|
|
|
|
int32_t index;
|
|
|
|
GfxPrefValue value;
|
|
|
|
};
|
|
|
|
|
2016-06-11 05:27:24 +03:00
|
|
|
sync protocol PGPU
|
|
|
|
{
|
|
|
|
parent:
|
2016-06-27 09:33:20 +03:00
|
|
|
// Sent by the UI process to initiate core settings.
|
|
|
|
async Init(GfxPrefSetting[] prefs);
|
|
|
|
|
|
|
|
// Called to update a gfx preference.
|
|
|
|
async UpdatePref(GfxPrefSetting pref);
|
2016-07-18 07:24:28 +03:00
|
|
|
|
|
|
|
// Create a new top-level compositor.
|
|
|
|
async NewWidgetCompositor(Endpoint<PCompositorBridgeParent> endpoint,
|
|
|
|
CSSToLayoutDeviceScale scale,
|
|
|
|
bool useExternalSurface,
|
|
|
|
IntSize surfaceSize);
|
2016-07-18 07:24:28 +03:00
|
|
|
|
|
|
|
// Create a new content-process compositor bridge.
|
|
|
|
async NewContentCompositorBridge(Endpoint<PCompositorBridgeParent> endpoint);
|
2016-06-11 05:27:24 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace gfx
|
|
|
|
} // namespace mozilla
|