2012-01-19 06:45:37 -08:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
* vim: sw=2 ts=8 et :
|
|
|
|
*/
|
2012-05-21 04:12:37 -07:00
|
|
|
/* 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/. */
|
2012-01-19 06:45:37 -08:00
|
|
|
|
2012-10-04 00:05:24 -07:00
|
|
|
include LayersSurfaces;
|
|
|
|
include protocol PGrallocBuffer;
|
2013-04-24 11:42:40 -07:00
|
|
|
include protocol PLayerTransaction;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
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
2013-04-10 02:20:52 -07:00
|
|
|
include "mozilla/layers/CompositorTypes.h";
|
2012-01-19 06:45:37 -08:00
|
|
|
|
|
|
|
using mozilla::null_t;
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
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
2013-04-10 02:20:52 -07:00
|
|
|
using mozilla::layers::TextureFactoryIdentifier;
|
|
|
|
using mozilla::layers::LayersBackend;
|
2012-01-19 06:45:37 -08:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
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
2013-04-10 02:20:52 -07:00
|
|
|
|
2012-01-19 06:45:37 -08:00
|
|
|
/**
|
|
|
|
* The PCompositor protocol is used to manage communication between
|
|
|
|
* the main thread and the compositor thread context. It's primary
|
2013-04-24 11:42:40 -07:00
|
|
|
* purpose is to manage the PLayerTransaction sub protocol.
|
2012-01-19 06:45:37 -08:00
|
|
|
*/
|
|
|
|
// This should really be 'sync', but we're using 'rpc' as a workaround
|
|
|
|
// for Bug 716631.
|
|
|
|
rpc protocol PCompositor
|
|
|
|
{
|
2013-04-24 11:42:40 -07:00
|
|
|
// A Compositor manages a single Layer Manager (PLayerTransaction)
|
|
|
|
manages PLayerTransaction;
|
2012-01-19 06:45:37 -08:00
|
|
|
|
Bug 825928: Land layers refactoring. r=jrmuizel,bas,nical,mattwoodrow,roc,nrc,benwa,bjacob,jgilbert,kchen CLOSED TREE
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
2013-04-10 02:20:52 -07:00
|
|
|
parent:
|
2012-10-29 15:10:45 -07:00
|
|
|
|
2012-03-30 12:43:11 -07:00
|
|
|
// The child is about to be destroyed, so perform any necessary cleanup.
|
|
|
|
sync WillStop();
|
|
|
|
|
|
|
|
// Clean up in preparation for own destruction.
|
2012-01-19 06:45:37 -08:00
|
|
|
sync Stop();
|
|
|
|
|
2012-03-28 15:00:10 -07:00
|
|
|
// Pause/resume the compositor. These are intended to be used on mobile, when
|
|
|
|
// the compositor needs to pause/resume in lockstep with the application.
|
|
|
|
sync Pause();
|
|
|
|
sync Resume();
|
|
|
|
|
2013-07-11 19:32:09 -07:00
|
|
|
async NotifyChildCreated(uint64_t id);
|
|
|
|
|
2012-10-04 00:05:24 -07:00
|
|
|
// Make a snapshot of the content that would have been drawn to our
|
|
|
|
// render target at the time this message is received. If the size
|
|
|
|
// or format of |inSnapshot| doesn't match our render target,
|
|
|
|
// results are undefined.
|
|
|
|
//
|
|
|
|
// NB: this message will result in animations, transforms, effects,
|
|
|
|
// and so forth being interpolated. That's what we want to happen.
|
|
|
|
sync MakeSnapshot(SurfaceDescriptor inSnapshot)
|
|
|
|
returns (SurfaceDescriptor outSnapshot);
|
|
|
|
|
2013-06-18 00:58:43 -07:00
|
|
|
// Make sure any pending composites are started immediately and
|
|
|
|
// block until they are completed.
|
|
|
|
sync FlushRendering();
|
|
|
|
|
2013-04-24 11:42:40 -07:00
|
|
|
sync PLayerTransaction(LayersBackend layersBackendHint, uint64_t id)
|
2013-08-04 00:46:17 -07:00
|
|
|
returns (TextureFactoryIdentifier textureFactoryIdentifier, bool success);
|
2012-01-19 06:45:37 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // layers
|
|
|
|
} // mozilla
|