--- a/gfx/layers/ipc/CompositorParent.cpp
+++ b/gfx/layers/ipc/CompositorParent.cpp
@@ -99,23 +99,21 @@ CompositorParent::PauseComposition()
static_cast<LayerManagerOGL*>(mLayerManager.get())->gl()->ReleaseSurface();
#endif
}
}
void
CompositorParent::ResumeComposition()
{
- if (mPaused) {
- mPaused = false;
+ mPaused = false;
#ifdef MOZ_WIDGET_ANDROID
- static_cast<LayerManagerOGL*>(mLayerManager.get())->gl()->RenewSurface();
+ static_cast<LayerManagerOGL*>(mLayerManager.get())->gl()->RenewSurface();
#endif
- }
}
void
CompositorParent::SchedulePauseOnCompositorThread(::base::Thread &aCompositorThread)
{
CancelableTask *pauseTask = NewRunnableMethod(this,
&CompositorParent::PauseComposition);
aCompositorThread.message_loop()->PostTask(FROM_HERE, pauseTask);