From 9ea14294a140d7f404be04d92db0050e177d76af Mon Sep 17 00:00:00 2001 From: Sotaro Ikeda Date: Fri, 11 Apr 2014 17:42:35 -0700 Subject: [PATCH] Bug 990080 - Prepare for the next reycle, only if TextureClient request it r=BenWa --- gfx/layers/composite/TextureHost.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gfx/layers/composite/TextureHost.cpp b/gfx/layers/composite/TextureHost.cpp index d8b0a93a6990..23ecedbc0224 100644 --- a/gfx/layers/composite/TextureHost.cpp +++ b/gfx/layers/composite/TextureHost.cpp @@ -644,7 +644,10 @@ TextureParent::CompositorRecycle() mozilla::unused << SendCompositorRecycle(handle); // Don't forget to prepare for the next reycle - mWaitForClientRecycle = mTextureHost; + // if TextureClient request it. + if (mTextureHost->GetFlags() & TEXTURE_RECYCLE) { + mWaitForClientRecycle = mTextureHost; + } } bool