Bug 933082 - Part 3: let ShadowLayerForwarder hold a strong ref to its LayerTransactionChild - r=nical

This commit is contained in:
Benoit Jacob 2013-11-27 10:18:38 -05:00
parent f83f2f5858
commit 8b7013b519
2 changed files with 3 additions and 4 deletions

View File

@ -179,8 +179,7 @@ CompositableForwarder::IdentifyTextureHost(const TextureFactoryIdentifier& aIden
}
ShadowLayerForwarder::ShadowLayerForwarder()
: mShadowManager(nullptr)
, mDiagnosticTypes(DIAGNOSTIC_NONE)
: mDiagnosticTypes(DIAGNOSTIC_NONE)
, mIsFirstPaint(false)
, mWindowOverlayChanged(false)
{

View File

@ -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