2010-07-21 21:17:33 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
* vim: sw=2 ts=8 et :
|
|
|
|
*/
|
2012-05-21 11:12:37 +00: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/. */
|
2010-07-21 21:17:33 +00:00
|
|
|
|
2013-04-24 18:42:40 +00:00
|
|
|
#ifndef MOZILLA_LAYERS_LAYERTRANSACTIONPARENT_H
|
|
|
|
#define MOZILLA_LAYERS_LAYERTRANSACTIONPARENT_H
|
2010-07-21 21:17:33 +00:00
|
|
|
|
2013-08-11 23:17:23 +00:00
|
|
|
#include <stddef.h> // for size_t
|
|
|
|
#include <stdint.h> // for uint64_t, uint32_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"
|
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/SharedMemory.h" // for SharedMemory, etc
|
|
|
|
#include "mozilla/layers/PLayerTransactionParent.h"
|
|
|
|
#include "nsAutoPtr.h" // for nsRefPtr
|
|
|
|
#include "nsTArrayForwardDeclare.h" // for InfallibleTArray
|
|
|
|
|
2010-07-21 21:17:33 +00:00
|
|
|
namespace mozilla {
|
2010-08-20 23:24:41 +00:00
|
|
|
|
2013-08-11 23:17:23 +00:00
|
|
|
namespace ipc {
|
|
|
|
class Shmem;
|
|
|
|
}
|
|
|
|
|
2010-08-20 23:24:41 +00:00
|
|
|
namespace layout {
|
|
|
|
class RenderFrameParent;
|
|
|
|
}
|
|
|
|
|
2010-07-21 21:17:33 +00:00
|
|
|
namespace layers {
|
|
|
|
|
2010-08-20 23:24:41 +00:00
|
|
|
class Layer;
|
2013-04-25 22:25:33 +00:00
|
|
|
class LayerManagerComposite;
|
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
|
|
|
class ShadowLayerParent;
|
|
|
|
class CompositableParent;
|
2013-08-11 23:17:23 +00:00
|
|
|
class ShadowLayersManager;
|
2010-07-21 21:17:33 +00:00
|
|
|
|
2013-04-24 18:42:40 +00:00
|
|
|
class LayerTransactionParent : public PLayerTransactionParent,
|
2013-11-27 15:19:34 +00:00
|
|
|
public CompositableParentManager
|
2010-07-21 21:17:33 +00:00
|
|
|
{
|
2010-08-20 23:24:41 +00:00
|
|
|
typedef mozilla::layout::RenderFrameParent RenderFrameParent;
|
2010-11-09 02:49:00 +00:00
|
|
|
typedef InfallibleTArray<Edit> EditArray;
|
|
|
|
typedef InfallibleTArray<EditReply> EditReplyArray;
|
2014-05-06 01:56:40 +00:00
|
|
|
typedef InfallibleTArray<AsyncChildMessageData> AsyncChildMessageArray;
|
2015-01-29 19:41:55 +00:00
|
|
|
typedef InfallibleTArray<PluginWindowData> PluginsArray;
|
2010-07-21 21:17:33 +00:00
|
|
|
|
|
|
|
public:
|
2013-04-25 22:25:33 +00:00
|
|
|
LayerTransactionParent(LayerManagerComposite* aManager,
|
2013-04-24 18:42:40 +00:00
|
|
|
ShadowLayersManager* aLayersManager,
|
2014-05-24 16:14:45 +00:00
|
|
|
uint64_t aId,
|
|
|
|
ProcessId aOtherProcess);
|
2014-07-15 15:37:45 +00:00
|
|
|
|
|
|
|
protected:
|
2013-04-24 18:42:40 +00:00
|
|
|
~LayerTransactionParent();
|
2010-07-21 21:17:33 +00:00
|
|
|
|
2014-07-15 15:37:45 +00:00
|
|
|
public:
|
2011-01-06 04:54:47 +00:00
|
|
|
void Destroy();
|
|
|
|
|
2013-04-25 22:25:33 +00:00
|
|
|
LayerManagerComposite* layer_manager() const { return mLayerManager; }
|
2010-07-21 21:17:33 +00:00
|
|
|
|
2012-07-17 23:59:45 +00:00
|
|
|
uint64_t GetId() const { return mId; }
|
2013-07-02 04:17:23 +00:00
|
|
|
Layer* GetRoot() const { return mRoot; }
|
2010-08-20 23:24:41 +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
|
|
|
|
virtual bool AllocShmem(size_t aSize,
|
|
|
|
ipc::SharedMemory::SharedMemoryType aType,
|
2015-03-21 16:28:04 +00:00
|
|
|
ipc::Shmem* aShmem) override {
|
2013-04-24 18:42:40 +00:00
|
|
|
return PLayerTransactionParent::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
|
|
|
}
|
|
|
|
|
|
|
|
virtual bool AllocUnsafeShmem(size_t aSize,
|
|
|
|
ipc::SharedMemory::SharedMemoryType aType,
|
2015-03-21 16:28:04 +00:00
|
|
|
ipc::Shmem* aShmem) override {
|
2013-04-24 18:42:40 +00:00
|
|
|
return PLayerTransactionParent::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
|
|
|
virtual 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
|
|
|
{
|
2013-04-24 18:42:40 +00:00
|
|
|
PLayerTransactionParent::DeallocShmem(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
|
|
|
virtual LayersBackend GetCompositorBackendType() const override;
|
2014-03-07 21:34:04 +00:00
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual bool IsSameProcess() const override;
|
2011-09-27 22:19:26 +00:00
|
|
|
|
2014-05-28 21:42:14 +00:00
|
|
|
const uint64_t& GetPendingTransactionId() { return mPendingTransaction; }
|
|
|
|
void SetPendingTransactionId(uint64_t aId) { mPendingTransaction = aId; }
|
|
|
|
|
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-14 22:40:15 +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;
|
|
|
|
}
|
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual void ReplyRemoveTexture(const OpReplyRemoveTexture& aReply) override;
|
2015-03-11 13:53:43 +00:00
|
|
|
|
2010-07-21 21:17:33 +00:00
|
|
|
protected:
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual bool RecvShutdown() override;
|
2014-10-13 08:43:59 +00:00
|
|
|
|
2015-01-16 19:58:52 +00:00
|
|
|
virtual bool RecvUpdate(EditArray&& cset,
|
2014-05-28 21:42:14 +00:00
|
|
|
const uint64_t& aTransactionId,
|
2012-07-24 19:01:09 +00:00
|
|
|
const TargetConfig& targetConfig,
|
2015-01-29 19:41:55 +00:00
|
|
|
PluginsArray&& aPlugins,
|
2012-07-12 12:51:58 +00:00
|
|
|
const bool& isFirstPaint,
|
2013-12-16 05:38:42 +00:00
|
|
|
const bool& scheduleComposite,
|
2014-05-06 21:26:13 +00:00
|
|
|
const uint32_t& paintSequenceNumber,
|
2014-05-30 22:52:43 +00:00
|
|
|
const bool& isRepeatTransaction,
|
2014-08-28 19:24:26 +00:00
|
|
|
const mozilla::TimeStamp& aTransactionStart,
|
2015-03-21 16:28:04 +00:00
|
|
|
EditReplyArray* reply) override;
|
2010-07-21 21:17:33 +00:00
|
|
|
|
2015-01-16 19:58:52 +00:00
|
|
|
virtual bool RecvUpdateNoSwap(EditArray&& cset,
|
2014-05-28 21:42:14 +00:00
|
|
|
const uint64_t& aTransactionId,
|
2012-07-24 19:01:09 +00:00
|
|
|
const TargetConfig& targetConfig,
|
2015-01-29 19:41:55 +00:00
|
|
|
PluginsArray&& aPlugins,
|
2013-12-16 05:38:42 +00:00
|
|
|
const bool& isFirstPaint,
|
2014-05-06 21:26:13 +00:00
|
|
|
const bool& scheduleComposite,
|
2014-05-30 22:52:43 +00:00
|
|
|
const uint32_t& paintSequenceNumber,
|
2014-08-28 19:24:26 +00:00
|
|
|
const bool& isRepeatTransaction,
|
2015-03-21 16:28:04 +00:00
|
|
|
const mozilla::TimeStamp& aTransactionStart) override;
|
2012-05-01 19:23:39 +00:00
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual bool RecvClearCachedResources() override;
|
|
|
|
virtual bool RecvForceComposite() override;
|
|
|
|
virtual bool RecvSetTestSampleTime(const TimeStamp& aTime) override;
|
|
|
|
virtual bool RecvLeaveTestMode() override;
|
2013-05-30 00:38:27 +00:00
|
|
|
virtual bool RecvGetOpacity(PLayerParent* aParent,
|
2015-03-21 16:28:04 +00:00
|
|
|
float* aOpacity) override;
|
2014-03-10 04:47:12 +00:00
|
|
|
virtual bool RecvGetAnimationTransform(PLayerParent* aParent,
|
|
|
|
MaybeTransform* aTransform)
|
2015-03-21 16:28:04 +00:00
|
|
|
override;
|
2014-08-31 03:29:24 +00:00
|
|
|
virtual bool RecvSetAsyncScrollOffset(const FrameMetrics::ViewID& aId,
|
2015-03-21 16:28:04 +00:00
|
|
|
const int32_t& aX, const int32_t& aY) override;
|
|
|
|
virtual bool RecvGetAPZTestData(APZTestData* aOutData) override;
|
|
|
|
virtual bool RecvRequestProperty(const nsString& aProperty, float* aValue) override;
|
2012-11-08 03:51:55 +00:00
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual PLayerParent* AllocPLayerParent() override;
|
|
|
|
virtual bool DeallocPLayerParent(PLayerParent* actor) override;
|
2010-07-21 21:17:33 +00:00
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual PCompositableParent* AllocPCompositableParent(const TextureInfo& aInfo) override;
|
|
|
|
virtual bool DeallocPCompositableParent(PCompositableParent* actor) override;
|
2013-04-25 22:25:33 +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
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual void ActorDestroy(ActorDestroyReason why) override;
|
2014-05-06 01:56:40 +00:00
|
|
|
|
2014-02-21 21:50:25 +00:00
|
|
|
bool Attach(ShadowLayerParent* aLayerParent,
|
2014-04-25 15:15:58 +00:00
|
|
|
CompositableHost* aCompositable,
|
2013-08-21 01:28:53 +00:00
|
|
|
bool aIsAsyncVideo);
|
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-11-27 15:18:38 +00:00
|
|
|
void AddIPDLReference() {
|
|
|
|
MOZ_ASSERT(mIPCOpen == false);
|
|
|
|
mIPCOpen = true;
|
|
|
|
AddRef();
|
|
|
|
}
|
|
|
|
void ReleaseIPDLReference() {
|
|
|
|
MOZ_ASSERT(mIPCOpen == true);
|
|
|
|
mIPCOpen = false;
|
|
|
|
Release();
|
|
|
|
}
|
|
|
|
friend class CompositorParent;
|
|
|
|
friend class CrossProcessCompositorParent;
|
|
|
|
friend class layout::RenderFrameParent;
|
|
|
|
|
2010-07-21 21:17:33 +00:00
|
|
|
private:
|
2013-04-25 22:25:33 +00:00
|
|
|
nsRefPtr<LayerManagerComposite> mLayerManager;
|
2012-01-19 14:45:37 +00:00
|
|
|
ShadowLayersManager* mShadowLayersManager;
|
2010-08-20 23:24:41 +00:00
|
|
|
// Hold the root because it might be grafted under various
|
|
|
|
// containers in the "real" layer tree
|
2013-07-02 04:17:23 +00:00
|
|
|
nsRefPtr<Layer> mRoot;
|
2012-07-17 23:59:45 +00:00
|
|
|
// When this is nonzero, it refers to a layer tree owned by the
|
|
|
|
// compositor thread. It is always true that
|
|
|
|
// mId != 0 => mRoot == null
|
|
|
|
// because the "real tree" is owned by the compositor.
|
|
|
|
uint64_t mId;
|
2014-05-28 21:42:14 +00:00
|
|
|
|
|
|
|
uint64_t mPendingTransaction;
|
2011-01-12 20:13:41 +00:00
|
|
|
// When the widget/frame/browser stuff in this process begins its
|
|
|
|
// destruction process, we need to Disconnect() all the currently
|
|
|
|
// live shadow layers, because some of them might be orphaned from
|
|
|
|
// the layer tree. This happens in Destroy() above. After we
|
|
|
|
// Destroy() ourself, there's a window in which that information
|
|
|
|
// hasn't yet propagated back to the child side and it might still
|
|
|
|
// send us layer transactions. We want to ignore those transactions
|
|
|
|
// because they refer to "zombie layers" on this side. So, we track
|
|
|
|
// that state with |mDestroyed|. This is similar to, but separate
|
|
|
|
// from, |mLayerManager->IsDestroyed()|; we might have had Destroy()
|
|
|
|
// called on us but the mLayerManager might not be destroyed, or
|
|
|
|
// vice versa. In both cases though, we want to ignore shadow-layer
|
|
|
|
// transactions posted by the child.
|
2014-05-24 16:14:45 +00:00
|
|
|
|
|
|
|
// Child side's process id.
|
|
|
|
base::ProcessId mChildProcessId;
|
|
|
|
|
2011-01-12 20:13:41 +00:00
|
|
|
bool mDestroyed;
|
2013-11-27 15:18:38 +00:00
|
|
|
|
|
|
|
bool mIPCOpen;
|
2010-07-21 21:17:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace layers
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2013-04-24 18:42:40 +00:00
|
|
|
#endif // MOZILLA_LAYERS_LAYERTRANSACTIONPARENT_H
|