Bug 1189473 - Don't paint the tiles in the APZ minimap. r=mstange
authorBenoit Girard <b56girard@gmail.com>
Thu, 30 Jul 2015 15:26:39 -0400
changeset 287194 782a677d2191efe11099cfd4017b7a900605f289
parent 287193 0c1094fe8b59d39354657903c8381296faad581b
child 287195 a402fa89a7287e8dd8bce15e7c773153f540295a
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1189473
milestone42.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 1189473 - Don't paint the tiles in the APZ minimap. r=mstange
gfx/layers/composite/ContainerLayerComposite.cpp
--- a/gfx/layers/composite/ContainerLayerComposite.cpp
+++ b/gfx/layers/composite/ContainerLayerComposite.cpp
@@ -466,29 +466,31 @@ RenderMinimap(ContainerT* aContainer, La
                     transform.TransformBounds(scrollRect.ToUnknownRect()));
   clipRect.width++;
   clipRect.height++;
 
   Rect r;
   r = transform.TransformBounds(scrollRect.ToUnknownRect());
   compositor->FillRect(r, backgroundColor, clipRect, aContainer->GetEffectiveTransform());
 
+  /* Disabled because on long pages SlowDrawRect becomes a bottleneck.
   int tileW = gfxPrefs::LayersTileWidth();
   int tileH = gfxPrefs::LayersTileHeight();
 
   for (int x = scrollRect.x; x < scrollRect.XMost(); x += tileW) {
     for (int y = scrollRect.y; y < scrollRect.YMost(); y += tileH) {
       LayerRect tileRect = LayerRect(x - x % tileW, y - y % tileH, tileW, tileH);
       r = transform.TransformBounds(tileRect.ToUnknownRect());
       if (tileRect.Intersects(dp)) {
         compositor->FillRect(r, tileActiveColor, clipRect, aContainer->GetEffectiveTransform());
       }
       compositor->SlowDrawRect(r, tileBorderColor, clipRect, aContainer->GetEffectiveTransform());
     }
   }
+  */
 
   r = transform.TransformBounds(scrollRect.ToUnknownRect());
   compositor->SlowDrawRect(r, pageBorderColor, clipRect, aContainer->GetEffectiveTransform());
   r = transform.TransformBounds(dp.ToUnknownRect());
   compositor->SlowDrawRect(r, displayPortColor, clipRect, aContainer->GetEffectiveTransform());
   r = transform.TransformBounds(viewRect.ToUnknownRect());
   compositor->SlowDrawRect(r, viewPortColor, clipRect, aContainer->GetEffectiveTransform());
 }