Bug 944703 - Part 7: make DeprecatedSharedRGBImage hold a strong reference to its ISurfaceAllocator - r=nical
authorBenoit Jacob <bjacob@mozilla.com>
Tue, 03 Dec 2013 13:44:38 -0500
changeset 174276 cace22d26591479d0460ee838ed894aa75c9b82e
parent 174275 31859d96678a7976d030d406050e1ffaf622fda0
child 174277 d00ad4010be844d08ba020625889dd2544332ecf
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 7: make DeprecatedSharedRGBImage hold a strong reference to its ISurfaceAllocator - r=nical
gfx/layers/ipc/SharedRGBImage.h
--- a/gfx/layers/ipc/SharedRGBImage.h
+++ b/gfx/layers/ipc/SharedRGBImage.h
@@ -86,17 +86,17 @@ public:
 
   bool AllocateBuffer(nsIntSize aSize, gfxImageFormat aImageFormat);
 
   TextureClient* GetTextureClient() MOZ_OVERRIDE { return nullptr; }
 
 protected:
   gfxIntSize mSize;
   gfxImageFormat mImageFormat;
-  ISurfaceAllocator* mSurfaceAllocator;
+  RefPtr<ISurfaceAllocator> mSurfaceAllocator;
 
   bool mAllocated;
   ipc::Shmem *mShmem;
 };
 
 /**
  * Stores RGB data in shared memory
  * It is assumed that the image width and stride are equal