Fix delayed rendering after orientation change.
authorAli Juma <ajuma@mozilla.com>
Tue, 07 Feb 2012 11:26:52 -0500
changeset 90895 04659e721b6626e0f99bbe949dc3951936a531d1
parent 90894 959073324dda2ec7f83e62e88ca5d9be0f454177
child 90897 629225186db05edfd4926a12be2a3c6c9a03510f
push idunknown
push userunknown
push dateunknown
milestone12.0a1
Fix delayed rendering after orientation change.
gfx/layers/ipc/CompositorParent.cpp
--- 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);