mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 933082 - Part 3: let ShadowLayerForwarder hold a strong ref to its LayerTransactionChild - r=nical
This commit is contained in:
parent
f83f2f5858
commit
8b7013b519
@ -179,8 +179,7 @@ CompositableForwarder::IdentifyTextureHost(const TextureFactoryIdentifier& aIden
|
||||
}
|
||||
|
||||
ShadowLayerForwarder::ShadowLayerForwarder()
|
||||
: mShadowManager(nullptr)
|
||||
, mDiagnosticTypes(DIAGNOSTIC_NONE)
|
||||
: mDiagnosticTypes(DIAGNOSTIC_NONE)
|
||||
, mIsFirstPaint(false)
|
||||
, mWindowOverlayChanged(false)
|
||||
{
|
||||
|
@ -348,7 +348,7 @@ public:
|
||||
* True if this is forwarding to a LayerManagerComposite.
|
||||
*/
|
||||
bool HasShadowManager() const { return !!mShadowManager; }
|
||||
PLayerTransactionChild* GetShadowManager() const { return mShadowManager; }
|
||||
PLayerTransactionChild* GetShadowManager() const { return mShadowManager.get(); }
|
||||
|
||||
virtual void WindowOverlayChanged() { mWindowOverlayChanged = true; }
|
||||
|
||||
@ -421,7 +421,7 @@ protected:
|
||||
void CheckSurfaceDescriptor(const SurfaceDescriptor* aDescriptor) const {}
|
||||
#endif
|
||||
|
||||
PLayerTransactionChild* mShadowManager;
|
||||
RefPtr<PLayerTransactionChild> mShadowManager;
|
||||
|
||||
#ifdef MOZ_HAVE_SURFACEDESCRIPTORGRALLOC
|
||||
// from ISurfaceAllocator
|
||||
|
Loading…
Reference in New Issue
Block a user