mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
7d182a2102
Please contact Bas Schouten <bschouten@mozilla.com>, Nicolas Silva <nsilva@mozilla.com> or Nicholas Cameron <ncameron@mozilla.com> with general questions. Below is a rough list of authors to contact with specific questions. Authors: gfx/layers/Compositor.* gfx/layers/Effects.h - Compositor Interface - bas,nrc,nical gfx/layers/d3d* - D3D9/D3D10 - bas gfx/layers/ThebesLayer* - ThebesLayers - nrc,bas gfx/layers/composite/* - CompositeLayers - nrc,nical gfx/layers/client/* - Client - nrc,nical,bas gfx/layers/*Image* - nical gfx/layers/ipc ipc - IPC - nical gfx/layers/opengl - CompositorOGL - nrc,nical gfx/2d - bas,nrc gfx/gl - GLContext - bjacob dom/* layout/* - DOM - mattwoodrow
69 lines
2.1 KiB
Plaintext
69 lines
2.1 KiB
Plaintext
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
* vim: sw=2 ts=8 et :
|
|
*/
|
|
/* 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 LayersSurfaces;
|
|
include LayerTransaction;
|
|
include protocol PCompositable;
|
|
include protocol PCompositor;
|
|
include protocol PGrallocBuffer;
|
|
include protocol PLayer;
|
|
include protocol PRenderFrame;
|
|
include protocol PTexture;
|
|
|
|
include "mozilla/WidgetUtils.h";
|
|
include "mozilla/TimeStamp.h";
|
|
include "mozilla/dom/ScreenOrientation.h";
|
|
include "nsCSSProperty.h";
|
|
include "gfxipc/ShadowLayerUtils.h";
|
|
|
|
/**
|
|
* The layers protocol is spoken between thread contexts that manage
|
|
* layer (sub)trees. The protocol comprises atomically publishing
|
|
* layer subtrees to a "shadow" thread context (which grafts the
|
|
* subtree into its own tree), and atomically updating a published
|
|
* subtree. ("Atomic" in this sense is wrt painting.)
|
|
*/
|
|
|
|
namespace mozilla {
|
|
namespace layers {
|
|
|
|
sync protocol PLayers {
|
|
manager PRenderFrame or PCompositor;
|
|
manages PLayer;
|
|
manages PCompositable;
|
|
manages PGrallocBuffer;
|
|
|
|
parent:
|
|
/**
|
|
* Only the parent side has privileges to allocate the buffer.
|
|
* Allocation may fail (pmem is a scarce resource), and if so null_t
|
|
* is returned.
|
|
*/
|
|
sync PGrallocBuffer(gfxIntSize size, gfxContentType content)
|
|
returns (MaybeMagicGrallocBufferHandle handle);
|
|
async PLayer();
|
|
async PCompositable(CompositableType aType);
|
|
|
|
// The isFirstPaint flag can be used to indicate that this is the first update
|
|
// for a particular document.
|
|
sync Update(Edit[] cset, TargetConfig targetConfig, bool isFirstPaint)
|
|
returns (EditReply[] reply);
|
|
|
|
// We don't need to send a sync transaction if
|
|
// no transaction operate require a swap.
|
|
async UpdateNoSwap(Edit[] cset, TargetConfig targetConfig, bool isFirstPaint);
|
|
|
|
// Drop any front buffers that might be retained on the compositor
|
|
// side.
|
|
async ClearCachedResources();
|
|
|
|
async __delete__();
|
|
};
|
|
|
|
} // namespace layers
|
|
} // namespace mozilla
|