Bug 972728 - Invalidate more often in basic compositor (r=mattwoodrow)
authorBill McCloskey <wmccloskey@mozilla.com>
Thu, 06 Mar 2014 18:25:09 -0800
changeset 172438 0654a11c120a3ac373778397d7b786a2e7abff90
parent 172437 ea3ad950c01bc77f1635a867a3c3d8290514ff3d
child 172439 263b6c86c1be8a69becb2255724d23052879661f
push id5305
push usercbook@mozilla.com
push dateFri, 07 Mar 2014 13:17:43 +0000
treeherderb2g-inbound@10f476147e93 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs972728
milestone30.0a1
Bug 972728 - Invalidate more often in basic compositor (r=mattwoodrow)
widget/gtk/nsWindow.cpp
--- a/widget/gtk/nsWindow.cpp
+++ b/widget/gtk/nsWindow.cpp
@@ -2045,19 +2045,17 @@ nsWindow::OnExposeEvent(cairo_t *cr)
 
     nsIntRegion &region = exposeRegion.mRegion;
 
     ClientLayerManager *clientLayers =
         (GetLayerManager()->GetBackendType() == LayersBackend::LAYERS_CLIENT)
         ? static_cast<ClientLayerManager*>(GetLayerManager())
         : nullptr;
 
-    if (clientLayers && mCompositorParent &&
-        !gdk_screen_is_composited(gdk_window_get_screen(mGdkWindow)))
-    {
+    if (clientLayers && mCompositorParent) {
         // We need to paint to the screen even if nothing changed, since if we
         // don't have a compositing window manager, our pixels could be stale.
         clientLayers->SetNeedsComposite(true);
         clientLayers->SendInvalidRegion(region);
     }
 
     // Dispatch WillPaintWindow notification to allow scripts etc. to run
     // before we paint