2012-07-13 23:38:09 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 20; 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/. */
|
|
|
|
|
2012-08-17 14:56:55 +04:00
|
|
|
include LayersSurfaces;
|
2013-09-06 19:41:00 +04:00
|
|
|
include LayersMessages;
|
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 13:20:52 +04:00
|
|
|
include protocol PCompositable;
|
2014-05-01 05:52:00 +04:00
|
|
|
include protocol PLayer;
|
2013-12-12 05:44:44 +04:00
|
|
|
include protocol PTexture;
|
2013-06-03 14:14:37 +04:00
|
|
|
include ProtocolTypes;
|
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 13:20:52 +04:00
|
|
|
|
2013-07-26 23:28:31 +04:00
|
|
|
include "mozilla/GfxMessageUtils.h";
|
2012-07-13 23:38:09 +04:00
|
|
|
|
2013-10-01 23:25:07 +04:00
|
|
|
using struct mozilla::layers::TextureInfo from "mozilla/layers/CompositorTypes.h";
|
2014-04-26 06:34:05 +04:00
|
|
|
using mozilla::layers::TextureFlags from "mozilla/layers/CompositorTypes.h";
|
2012-07-13 23:38:09 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The PImageBridge protocol is used to allow isolated threads or processes to push
|
|
|
|
* frames directly to the compositor thread/process without relying on the main thread
|
|
|
|
* which might be too busy dealing with content script.
|
|
|
|
*/
|
2013-10-01 04:27:45 +04:00
|
|
|
intr protocol PImageBridge
|
2012-07-13 23:38:09 +04: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 13:20:52 +04:00
|
|
|
manages PCompositable;
|
2013-12-12 05:44:44 +04:00
|
|
|
manages PTexture;
|
2012-07-13 23:38:09 +04:00
|
|
|
|
2014-05-06 05:56:40 +04:00
|
|
|
child:
|
2014-05-15 02:40:15 +04:00
|
|
|
async ParentAsyncMessage(AsyncParentMessageData[] aMessages);
|
2014-05-06 05:56:40 +04:00
|
|
|
|
2012-07-13 23:38:09 +04:00
|
|
|
parent:
|
2012-08-17 14:56:55 +04: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 13:20:52 +04:00
|
|
|
sync Update(CompositableOperation[] ops) returns (EditReply[] reply);
|
|
|
|
async UpdateNoSwap(CompositableOperation[] ops);
|
|
|
|
|
2014-05-07 13:06:19 +04:00
|
|
|
// First step of the destruction sequence. This puts ImageBridge
|
|
|
|
// in a state in which it can't send asynchronous messages
|
|
|
|
// so as to not race with the upcomming Stop message and destruction.
|
|
|
|
// In the child side, the Stop message is not sent right after WillStop,
|
|
|
|
// it is scheduled in the ImageBridgeChild's message queue in order to ensure
|
|
|
|
// that all of the messages from the parent side have been received and processed
|
|
|
|
// before sending Stop, and that after Stop returns, there is no message in
|
|
|
|
// flight on any side and we can safely destroy the channel and threads.
|
|
|
|
sync WillStop();
|
|
|
|
// Second step
|
2012-07-13 23:38:09 +04:00
|
|
|
sync Stop();
|
|
|
|
|
2013-04-12 11:28:55 +04:00
|
|
|
sync PCompositable(TextureInfo aInfo) returns (uint64_t id);
|
2014-04-26 06:34:05 +04:00
|
|
|
async PTexture(SurfaceDescriptor aSharedData, TextureFlags aTextureFlags);
|
2014-05-06 05:56:40 +04:00
|
|
|
|
|
|
|
async ChildAsyncMessages(AsyncChildMessageData[] aMessages);
|
2012-07-13 23:38:09 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
} // namespace
|
|
|
|
|