2012-07-13 19:38:09 +00: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 10:56:55 +00:00
|
|
|
include LayersSurfaces;
|
2013-09-06 15:41:00 +00: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 09:20:52 +00:00
|
|
|
include protocol PCompositable;
|
2014-05-01 01:52:00 +00:00
|
|
|
include protocol PLayer;
|
2013-12-12 01:44:44 +00:00
|
|
|
include protocol PTexture;
|
2013-06-03 10:14:37 +00: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 09:20:52 +00:00
|
|
|
|
2013-07-26 19:28:31 +00:00
|
|
|
include "mozilla/GfxMessageUtils.h";
|
2012-07-13 19:38:09 +00:00
|
|
|
|
2013-10-01 19:25:07 +00:00
|
|
|
using struct mozilla::layers::TextureInfo from "mozilla/layers/CompositorTypes.h";
|
2014-04-26 02:34:05 +00:00
|
|
|
using mozilla::layers::TextureFlags from "mozilla/layers/CompositorTypes.h";
|
2012-07-13 19:38:09 +00: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 00:27:45 +00:00
|
|
|
intr protocol PImageBridge
|
2012-07-13 19:38:09 +00: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 09:20:52 +00:00
|
|
|
manages PCompositable;
|
2013-12-12 01:44:44 +00:00
|
|
|
manages PTexture;
|
2012-07-13 19:38:09 +00:00
|
|
|
|
2014-05-06 01:56:40 +00:00
|
|
|
child:
|
2014-06-08 13:18:53 +00:00
|
|
|
async ParentAsyncMessages(AsyncParentMessageData[] aMessages);
|
2014-05-06 01:56:40 +00:00
|
|
|
|
2012-07-13 19:38:09 +00:00
|
|
|
parent:
|
2012-08-17 10:56:55 +00: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 09:20:52 +00:00
|
|
|
sync Update(CompositableOperation[] ops) returns (EditReply[] reply);
|
|
|
|
async UpdateNoSwap(CompositableOperation[] ops);
|
|
|
|
|
2014-05-07 09:06:19 +00: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 19:38:09 +00:00
|
|
|
sync Stop();
|
|
|
|
|
2013-04-12 07:28:55 +00:00
|
|
|
sync PCompositable(TextureInfo aInfo) returns (uint64_t id);
|
2014-04-26 02:34:05 +00:00
|
|
|
async PTexture(SurfaceDescriptor aSharedData, TextureFlags aTextureFlags);
|
2014-05-06 01:56:40 +00:00
|
|
|
|
|
|
|
async ChildAsyncMessages(AsyncChildMessageData[] aMessages);
|
2012-07-13 19:38:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
} // namespace
|
|
|
|
|