Bug 1137251 - Disable RemoveTextureFromCompositableTracker except gonk r=nical

This commit is contained in:
Sotaro Ikeda 2015-03-03 08:51:05 -08:00
parent 8cd45553dd
commit 19e51a0a3e

View File

@ -386,6 +386,7 @@ CanvasClientSharedSurface::Update(gfx::IntSize aSize, ClientCanvasLayer* aLayer)
// Add the new TexClient.
MOZ_ALWAYS_TRUE( AddTextureClient(newTex) );
#ifdef MOZ_WIDGET_GONK
// Remove the old TexClient.
if (mFrontTex) {
// remove old buffer from CompositableHost
@ -398,6 +399,7 @@ CanvasClientSharedSurface::Update(gfx::IntSize aSize, ClientCanvasLayer* aLayer)
mFrontTex = nullptr;
}
#endif
// Use the new TexClient.
mFrontTex = newTex;