mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 854421 - Part 3: Add a way to detect PLayerTransaction objects that exist only for testing and won't composite. r=nical
This commit is contained in:
parent
b440e6a8f7
commit
5dda13aee0
@ -39,6 +39,9 @@ public:
|
||||
|
||||
bool IPCOpen() const { return mIPCOpen; }
|
||||
|
||||
void SetHasNoCompositor() { mHasNoCompositor = true; }
|
||||
bool HasNoCompositor() { return mHasNoCompositor; }
|
||||
|
||||
void SetForwarder(ShadowLayerForwarder* aForwarder)
|
||||
{
|
||||
mForwarder = aForwarder;
|
||||
@ -46,9 +49,10 @@ public:
|
||||
|
||||
protected:
|
||||
LayerTransactionChild()
|
||||
: mIPCOpen(false)
|
||||
: mForwarder(nullptr)
|
||||
, mIPCOpen(false)
|
||||
, mDestroyed(false)
|
||||
, mForwarder(nullptr)
|
||||
, mHasNoCompositor(false)
|
||||
{}
|
||||
~LayerTransactionChild() { }
|
||||
|
||||
@ -80,9 +84,10 @@ protected:
|
||||
friend class CompositorChild;
|
||||
friend class layout::RenderFrameChild;
|
||||
|
||||
ShadowLayerForwarder* mForwarder;
|
||||
bool mIPCOpen;
|
||||
bool mDestroyed;
|
||||
ShadowLayerForwarder* mForwarder;
|
||||
bool mHasNoCompositor;
|
||||
};
|
||||
|
||||
} // namespace layers
|
||||
|
@ -37,6 +37,11 @@ RenderFrameChild::AllocPLayerTransactionChild()
|
||||
{
|
||||
LayerTransactionChild* c = new LayerTransactionChild();
|
||||
c->AddIPDLReference();
|
||||
// We only create PLayerTransaction objects through PRenderFrame when we don't
|
||||
// have a PCompositor. This means that the child process content will never
|
||||
// get drawn to the screen, but some tests rely on it pretending to function
|
||||
// for now.
|
||||
c->SetHasNoCompositor();
|
||||
return c;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user