Bug 944703 - Part 4: make ContentHost hold a strong reference to its ISurfaceAllocator - r=nical
authorBenoit Jacob <bjacob@mozilla.com>
Tue, 03 Dec 2013 13:44:38 -0500
changeset 174273 30a25eb71609c984506669f57ba4e679f8000774
parent 174272 aa7869e65cc81473f49bc2fc0310f62077567f1a
child 174274 58b167ccb8e65f1a1dc2aecfd9252e71056113ef
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical
bugs944703
milestone28.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 944703 - Part 4: make ContentHost hold a strong reference to its ISurfaceAllocator - r=nical
gfx/layers/composite/ContentHost.h
--- a/gfx/layers/composite/ContentHost.h
+++ b/gfx/layers/composite/ContentHost.h
@@ -457,25 +457,25 @@ private:
       LEFT, RIGHT
     };
     enum YSide {
       TOP, BOTTOM
     };
 
     nsIntRect GetQuadrantRectangle(XSide aXSide, YSide aYSide) const;
 
-    ISurfaceAllocator* mDeAllocator;
+    RefPtr<ISurfaceAllocator> mDeAllocator;
     TextureIdentifier mTextureId;
     SurfaceDescriptor mDescriptor;
     nsIntRegion mUpdated;
     nsIntRect mBufferRect;
     nsIntPoint mBufferRotation;
   };
 
   nsTArray<nsAutoPtr<Request> > mUpdateList;
 
-  ISurfaceAllocator* mDeAllocator;
+  RefPtr<ISurfaceAllocator> mDeAllocator;
 };
 
 }
 }
 
 #endif