Bug 972728 - Invalidate more often in basic compositor (r=mattwoodrow)
authorBill McCloskey <wmccloskey@mozilla.com>
Thu, 06 Mar 2014 18:25:09 -0800
changeset 172402 0654a11c120a3ac373778397d7b786a2e7abff90
parent 172401 ea3ad950c01bc77f1635a867a3c3d8290514ff3d
child 172403 263b6c86c1be8a69becb2255724d23052879661f
push id26358
push usercbook@mozilla.com
push dateFri, 07 Mar 2014 11:48:31 +0000
treeherdermozilla-central@b9fc2eb18bd1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs972728
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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