Fix not flushing unused TextureHosts in Advanced Layers. (bug 1376243, r=mattwoodrow)
authorDavid Anderson <danderson@mozilla.com>
Tue, 27 Jun 2017 11:59:25 -0700
changeset 600772 37208b6123a1eff07346627a5b42931754fea2a1
parent 600771 0e4269675a0e98c50256cba9ccf5173e61c7f777
child 600773 71125aa849d31548fd7c188cecbd17cc287bd87f
push id65868
push userbmo:rail@mozilla.com
push dateTue, 27 Jun 2017 20:33:55 +0000
reviewersmattwoodrow
bugs1376243
milestone56.0a1
Fix not flushing unused TextureHosts in Advanced Layers. (bug 1376243, r=mattwoodrow)
gfx/layers/mlgpu/LayerManagerMLGPU.cpp
--- a/gfx/layers/mlgpu/LayerManagerMLGPU.cpp
+++ b/gfx/layers/mlgpu/LayerManagerMLGPU.cpp
@@ -265,16 +265,18 @@ LayerManagerMLGPU::EndTransaction(const 
   ComputeInvalidRegion();
 
   // Build and execute draw commands, and present.
   if (PreRender()) {
     Composite();
     PostRender();
   }
 
+  mTextureSourceProvider->FlushPendingNotifyNotUsed();
+
   // Finish composition.
   mLastCompositionEndTime = TimeStamp::Now();
 }
 
 void
 LayerManagerMLGPU::Composite()
 {
   AUTO_PROFILER_LABEL("LayerManagerMLGPU::Composite", GRAPHICS);