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;
|
2015-07-06 06:02:26 +03:00
|
|
|
include protocol PImageContainer;
|
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;
|
2015-07-05 21:56:04 +03:00
|
|
|
include protocol PMediaSystemResourceManager;
|
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
|
|
|
|
2015-05-07 16:53:47 +03:00
|
|
|
using PlatformThreadId from "base/platform_thread.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.
|
|
|
|
*/
|
2015-03-26 10:04:00 +03:00
|
|
|
sync 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;
|
2015-07-05 21:56:04 +03:00
|
|
|
manages PMediaSystemResourceManager;
|
2015-07-06 06:02:26 +03:00
|
|
|
manages PImageContainer;
|
2012-07-13 23:38:09 +04:00
|
|
|
|
2014-05-06 05:56:40 +04:00
|
|
|
child:
|
2014-06-08 17:18:53 +04:00
|
|
|
async ParentAsyncMessages(AsyncParentMessageData[] aMessages);
|
2014-05-06 05:56:40 +04:00
|
|
|
|
2015-07-06 06:02:26 +03:00
|
|
|
async DidComposite(ImageCompositeNotification[] aNotifications);
|
2012-08-17 14:56:55 +04:00
|
|
|
|
2015-07-06 06:02:26 +03:00
|
|
|
parent:
|
2015-05-07 16:53:47 +03:00
|
|
|
async ImageBridgeThreadId(PlatformThreadId aTreahdId);
|
|
|
|
|
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();
|
|
|
|
|
2015-07-06 06:02:26 +03:00
|
|
|
sync PCompositable(TextureInfo aInfo,
|
2015-10-05 18:28:25 +03:00
|
|
|
PImageContainer aImageContainer) returns (uint64_t id);
|
2014-04-26 06:34:05 +04:00
|
|
|
async PTexture(SurfaceDescriptor aSharedData, TextureFlags aTextureFlags);
|
2015-07-05 21:56:04 +03:00
|
|
|
async PMediaSystemResourceManager();
|
2015-07-06 06:02:26 +03:00
|
|
|
async PImageContainer();
|
2014-05-06 05:56:40 +04:00
|
|
|
|
|
|
|
async ChildAsyncMessages(AsyncChildMessageData[] aMessages);
|
2012-07-13 23:38:09 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
} // namespace
|
|
|
|
|