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 173299 30a25eb71609c984506669f57ba4e679f8000774
parent 173298 aa7869e65cc81473f49bc2fc0310f62077567f1a
child 173300 58b167ccb8e65f1a1dc2aecfd9252e71056113ef
push id3224
push userlsblakk@mozilla.com
push dateTue, 04 Feb 2014 01:06:49 +0000
treeherdermozilla-beta@60c04d0987f1 [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