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 243653 47e26f891d66
parent 243652 08a02585bc60
child 243654 c860bf9bc4a8
child 243659 e3c1a6cbe4d3
push id4422
push userryanvm@gmail.com
push date2015-02-02 20:21 +0000
treeherdermozilla-beta@47e26f891d66 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical, sledru
bugs1123084
milestone36.0
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
@@ -858,16 +858,17 @@ BufferTextureClient::GetLockedData() con
 
 SharedSurfaceTextureClient::SharedSurfaceTextureClient(TextureFlags aFlags,
                                                        gl::SharedSurface* surf)
   : TextureClient(aFlags)
   , mIsLocked(false)
   , mSurf(surf)
   , mGL(mSurf->mGL)
 {
+  AddFlags(TextureFlags::DEALLOCATE_CLIENT);
 }
 
 SharedSurfaceTextureClient::~SharedSurfaceTextureClient()
 {
   // the data is owned externally.
 }
 
 bool