Bug 1311592 - Stop using sync image decoding for tab switch paint (r=mattwoodrow)
authorBill McCloskey <billm@mozilla.com>
Wed, 19 Oct 2016 20:32:33 -0700
changeset 427708 bb20e66b9f1051baf1e1db58b043fb22680dac3b
parent 427707 d4f52dd26d8a4187963eda73c98978865c7d72c8
child 427709 63c6abc7afed3478f9a5ba939bd37bca6c29a996
push id33099
push userdholbert@mozilla.com
push dateThu, 20 Oct 2016 20:25:54 +0000
reviewersmattwoodrow
bugs1311592
milestone52.0a1
Bug 1311592 - Stop using sync image decoding for tab switch paint (r=mattwoodrow) DONTBUILD
dom/ipc/TabChild.cpp
--- a/dom/ipc/TabChild.cpp
+++ b/dom/ipc/TabChild.cpp
@@ -2631,18 +2631,17 @@ TabChild::RecvSetDocShellIsActive(const 
       // to paints as quickly as possible.
       APZCCallbackHelper::SuppressDisplayport(true, presShell);
       if (nsContentUtils::IsSafeToRunScript()) {
         WebWidget()->PaintNowIfNeeded();
       } else {
         RefPtr<nsViewManager> vm = presShell->GetViewManager();
         if (nsView* view = vm->GetRootView()) {
           presShell->Paint(view, view->GetBounds(),
-                           nsIPresShell::PAINT_LAYERS |
-                           nsIPresShell::PAINT_SYNC_DECODE_IMAGES);
+                           nsIPresShell::PAINT_LAYERS);
         }
       }
       APZCCallbackHelper::SuppressDisplayport(false, presShell);
     }
   } else if (!aPreserveLayers) {
     MakeHidden();
   }