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 240468 b5e80541fef4b57e95e56d4fed0f0929a12453f3
parent 240467 519846f0b6a43931385dc2845b16921f0ab0d104
child 240469 70a37bdb8ec56f877f3378d385f83c71e735541c
push id7556
push userryanvm@gmail.com
push dateMon, 02 Feb 2015 20:20:10 +0000
treeherdermozilla-aurora@b5e80541fef4 [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