Bug 1123084 - Always deallocate SharedSurface on the client. r=nical, a=sledru
authorJames Willcox <snorp@snorp.net>
Wed, 28 Jan 2015 12:20:00 -0500
changeset 249556 b5e80541fef4b57e95e56d4fed0f0929a12453f3
parent 249555 519846f0b6a43931385dc2845b16921f0ab0d104
child 249557 70a37bdb8ec56f877f3378d385f83c71e735541c
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical, sledru
bugs1123084
milestone37.0a2
Bug 1123084 - Always deallocate SharedSurface on the client. r=nical, a=sledru
gfx/layers/client/TextureClient.cpp
--- a/gfx/layers/client/TextureClient.cpp
+++ b/gfx/layers/client/TextureClient.cpp
@@ -903,16 +903,17 @@ BufferTextureClient::GetAsSurface()
 SharedSurfaceTextureClient::SharedSurfaceTextureClient(ISurfaceAllocator* aAllocator,
                                                        TextureFlags aFlags,
                                                        gl::SharedSurface* surf)
   : TextureClient(aAllocator, aFlags)
   , mIsLocked(false)
   , mSurf(surf)
   , mGL(mSurf->mGL)
 {
+  AddFlags(TextureFlags::DEALLOCATE_CLIENT);
 }
 
 SharedSurfaceTextureClient::~SharedSurfaceTextureClient()
 {
   // the data is owned externally.
 }
 
 bool