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/. */
|
|
|
|
|
2013-11-18 02:07:08 +00:00
|
|
|
#ifndef gfx_layers_ipc_ImageBridgeParent_h_
|
|
|
|
#define gfx_layers_ipc_ImageBridgeParent_h_
|
|
|
|
|
2013-08-11 23:17:23 +00:00
|
|
|
#include <stddef.h> // for size_t
|
|
|
|
#include <stdint.h> // for uint32_t, uint64_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 09:20:52 +00:00
|
|
|
#include "CompositableTransactionParent.h"
|
2013-08-11 23:17:23 +00:00
|
|
|
#include "mozilla/Assertions.h" // for MOZ_ASSERT_HELPER2
|
2015-03-21 16:28:04 +00:00
|
|
|
#include "mozilla/Attributes.h" // for override
|
2013-08-11 23:17:23 +00:00
|
|
|
#include "mozilla/ipc/ProtocolUtils.h"
|
|
|
|
#include "mozilla/ipc/SharedMemory.h" // for SharedMemory, etc
|
2014-10-27 12:57:36 +00:00
|
|
|
#include "mozilla/layers/CompositorParent.h"
|
2013-08-11 23:17:23 +00:00
|
|
|
#include "mozilla/layers/PImageBridgeParent.h"
|
|
|
|
#include "nsAutoPtr.h" // for nsRefPtr
|
|
|
|
#include "nsISupportsImpl.h"
|
|
|
|
#include "nsTArrayForwardDeclare.h" // for InfallibleTArray
|
2012-07-13 19:38:09 +00:00
|
|
|
|
|
|
|
class MessageLoop;
|
|
|
|
|
2014-05-01 01:52:00 +00:00
|
|
|
namespace base {
|
|
|
|
class Thread;
|
|
|
|
}
|
|
|
|
|
2012-07-13 19:38:09 +00:00
|
|
|
namespace mozilla {
|
2013-08-11 23:17:23 +00:00
|
|
|
namespace ipc {
|
|
|
|
class Shmem;
|
|
|
|
}
|
|
|
|
|
2012-07-13 19:38:09 +00:00
|
|
|
namespace layers {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ImageBridgeParent is the manager Protocol of ImageContainerParent.
|
|
|
|
* It's purpose is mainly to setup the IPDL connection. Most of the
|
|
|
|
* interesting stuff is in ImageContainerParent.
|
|
|
|
*/
|
2015-03-21 16:28:04 +00:00
|
|
|
class ImageBridgeParent final : public PImageBridgeParent,
|
2014-08-05 17:33:55 +00:00
|
|
|
public CompositableParentManager
|
2012-07-13 19:38:09 +00:00
|
|
|
{
|
2013-02-19 19:27:49 +00:00
|
|
|
public:
|
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
|
|
|
typedef InfallibleTArray<CompositableOperation> EditArray;
|
|
|
|
typedef InfallibleTArray<EditReply> EditReplyArray;
|
2014-05-06 01:56:40 +00:00
|
|
|
typedef InfallibleTArray<AsyncChildMessageData> AsyncChildMessageArray;
|
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
|
|
|
|
2014-05-24 16:14:45 +00:00
|
|
|
ImageBridgeParent(MessageLoop* aLoop, Transport* aTransport, ProcessId aChildProcessId);
|
2012-07-13 19:38:09 +00:00
|
|
|
~ImageBridgeParent();
|
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual LayersBackend GetCompositorBackendType() const override;
|
2014-03-07 21:34:04 +00:00
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual void ActorDestroy(ActorDestroyReason aWhy) override;
|
2013-02-19 19:27:49 +00:00
|
|
|
|
2013-09-26 04:19:09 +00:00
|
|
|
static PImageBridgeParent*
|
2014-05-24 16:14:45 +00:00
|
|
|
Create(Transport* aTransport, ProcessId aChildProcessId);
|
2012-08-17 10:56:55 +00:00
|
|
|
|
2014-05-06 01:56:40 +00:00
|
|
|
// CompositableParentManager
|
2014-10-06 22:45:03 +00:00
|
|
|
virtual void SendFenceHandleIfPresent(PTextureParent* aTexture,
|
2015-03-21 16:28:04 +00:00
|
|
|
CompositableHost* aCompositableHost) override;
|
2014-10-06 22:45:03 +00:00
|
|
|
|
2014-05-06 01:56:40 +00:00
|
|
|
virtual void SendFenceHandle(AsyncTransactionTracker* aTracker,
|
|
|
|
PTextureParent* aTexture,
|
2015-03-21 16:28:04 +00:00
|
|
|
const FenceHandle& aFence) override;
|
2014-05-06 01:56:40 +00:00
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual void SendAsyncMessage(const InfallibleTArray<AsyncParentMessageData>& aMessage) override;
|
2014-05-14 22:40:15 +00:00
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual base::ProcessId GetChildProcessId() override
|
2014-05-24 16:14:45 +00:00
|
|
|
{
|
|
|
|
return mChildProcessId;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
// PImageBridge
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual bool RecvUpdate(EditArray&& aEdits, EditReplyArray* aReply) override;
|
|
|
|
virtual bool RecvUpdateNoSwap(EditArray&& aEdits) override;
|
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
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual bool IsAsync() const override { return true; }
|
2013-11-13 12:25:50 +00:00
|
|
|
|
2013-07-08 15:48:39 +00:00
|
|
|
PCompositableParent* AllocPCompositableParent(const TextureInfo& aInfo,
|
2015-03-21 16:28:04 +00:00
|
|
|
uint64_t*) override;
|
|
|
|
bool DeallocPCompositableParent(PCompositableParent* aActor) override;
|
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
|
|
|
|
2014-01-21 22:06:18 +00:00
|
|
|
virtual PTextureParent* AllocPTextureParent(const SurfaceDescriptor& aSharedData,
|
2015-03-21 16:28:04 +00:00
|
|
|
const TextureFlags& aFlags) override;
|
|
|
|
virtual bool DeallocPTextureParent(PTextureParent* actor) override;
|
2013-12-12 01:44:44 +00:00
|
|
|
|
2014-05-06 01:56:40 +00:00
|
|
|
virtual bool
|
2015-03-21 16:28:04 +00:00
|
|
|
RecvChildAsyncMessages(InfallibleTArray<AsyncChildMessageData>&& aMessages) override;
|
2014-05-06 01:56:40 +00:00
|
|
|
|
2014-05-07 09:06:19 +00:00
|
|
|
// Shutdown step 1
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual bool RecvWillStop() override;
|
2014-05-07 09:06:19 +00:00
|
|
|
// Shutdown step 2
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual bool RecvStop() override;
|
2012-07-13 19:38:09 +00:00
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual MessageLoop* GetMessageLoop() const override;
|
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
|
|
|
|
|
|
|
// ISurfaceAllocator
|
|
|
|
|
|
|
|
bool AllocShmem(size_t aSize,
|
|
|
|
ipc::SharedMemory::SharedMemoryType aType,
|
2015-03-21 16:28:04 +00:00
|
|
|
ipc::Shmem* aShmem) override
|
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
|
|
|
{
|
2014-08-24 22:13:38 +00:00
|
|
|
return PImageBridgeParent::AllocShmem(aSize, aType, aShmem);
|
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
|
|
|
}
|
|
|
|
|
|
|
|
bool AllocUnsafeShmem(size_t aSize,
|
|
|
|
ipc::SharedMemory::SharedMemoryType aType,
|
2015-03-21 16:28:04 +00:00
|
|
|
ipc::Shmem* aShmem) override
|
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
|
|
|
{
|
2014-08-24 22:13:38 +00:00
|
|
|
return PImageBridgeParent::AllocUnsafeShmem(aSize, aType, aShmem);
|
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
|
|
|
}
|
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
void DeallocShmem(ipc::Shmem& aShmem) override
|
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
|
|
|
{
|
|
|
|
PImageBridgeParent::DeallocShmem(aShmem);
|
|
|
|
}
|
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual bool IsSameProcess() const override;
|
2014-02-25 13:12:49 +00:00
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual void ReplyRemoveTexture(const OpReplyRemoveTexture& aReply) override;
|
2014-05-12 14:39:25 +00:00
|
|
|
|
2014-05-24 16:14:45 +00:00
|
|
|
static void ReplyRemoveTexture(base::ProcessId aChildProcessId,
|
|
|
|
const OpReplyRemoveTexture& aReply);
|
|
|
|
|
|
|
|
void SendFenceHandleToTrackerIfPresent(uint64_t aDestHolderId,
|
|
|
|
uint64_t aTransactionId,
|
2014-10-06 22:45:03 +00:00
|
|
|
PTextureParent* aTexture,
|
|
|
|
CompositableHost* aCompositableHost);
|
2014-05-24 16:14:45 +00:00
|
|
|
|
|
|
|
static void SendFenceHandleToTrackerIfPresent(base::ProcessId aChildProcessId,
|
|
|
|
uint64_t aDestHolderId,
|
|
|
|
uint64_t aTransactionId,
|
2014-10-06 22:45:03 +00:00
|
|
|
PTextureParent* aTexture,
|
|
|
|
CompositableHost* aCompositableHost);
|
|
|
|
|
|
|
|
using CompositableParentManager::SendPendingAsyncMessges;
|
|
|
|
static void SendPendingAsyncMessges(base::ProcessId aChildProcessId);
|
2014-05-24 16:14:45 +00:00
|
|
|
|
|
|
|
static ImageBridgeParent* GetInstance(ProcessId aId);
|
|
|
|
|
2013-06-03 10:14:37 +00:00
|
|
|
// Overriden from IToplevelProtocol
|
|
|
|
IToplevelProtocol*
|
|
|
|
CloneToplevel(const InfallibleTArray<ProtocolFdMapping>& aFds,
|
|
|
|
base::ProcessHandle aPeerProcess,
|
2015-03-21 16:28:04 +00:00
|
|
|
mozilla::ipc::ProtocolCloneContext* aCtx) override;
|
2013-06-03 10:14:37 +00:00
|
|
|
|
2012-07-13 19:38:09 +00:00
|
|
|
private:
|
2013-02-19 19:27:49 +00:00
|
|
|
void DeferredDestroy();
|
|
|
|
|
|
|
|
MessageLoop* mMessageLoop;
|
|
|
|
Transport* mTransport;
|
2014-05-24 16:14:45 +00:00
|
|
|
// Child side's process id.
|
|
|
|
base::ProcessId mChildProcessId;
|
2013-02-19 19:27:49 +00:00
|
|
|
// This keeps us alive until ActorDestroy(), at which point we do a
|
|
|
|
// deferred destruction of ourselves.
|
|
|
|
nsRefPtr<ImageBridgeParent> mSelfRef;
|
2014-05-24 16:14:45 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Map of all living ImageBridgeParent instances
|
|
|
|
*/
|
|
|
|
static std::map<base::ProcessId, ImageBridgeParent*> sImageBridges;
|
2014-07-04 18:04:12 +00:00
|
|
|
|
|
|
|
static MessageLoop* sMainLoop;
|
2014-07-07 01:30:15 +00:00
|
|
|
|
|
|
|
nsRefPtr<CompositorThreadHolder> mCompositorThreadHolder;
|
2012-07-13 19:38:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // layers
|
|
|
|
} // mozilla
|
|
|
|
|
2013-11-18 02:07:08 +00:00
|
|
|
#endif // gfx_layers_ipc_ImageBridgeParent_h_
|