Bug 755452 - Don't re-invalidate region to paint in BasicTiledLayerBuffer::PaintThebes. r=roc a=akeybl
authorBenoit Girard <b56girard@gmail.com>
Fri, 25 May 2012 14:45:11 -0400
changeset 95870 a5bae202976b134b29ced766048b16e98073393b
parent 95869 6db75fba7c00980d93684a9b658e8fcc898c71c8
child 95871 4f318c1fea777e6469b6ce6ff9fb5bfd903d51af
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc, akeybl
bugs755452
milestone14.0a2
Bug 755452 - Don't re-invalidate region to paint in BasicTiledLayerBuffer::PaintThebes. r=roc a=akeybl
gfx/layers/basic/BasicTiledThebesLayer.cpp
--- a/gfx/layers/basic/BasicTiledThebesLayer.cpp
+++ b/gfx/layers/basic/BasicTiledThebesLayer.cpp
@@ -90,17 +90,17 @@ BasicTiledLayerBuffer::PaintThebes(Basic
     ctxt->Translate(gfxPoint(-bounds.x, -bounds.y));
 #ifdef GFX_TILEDLAYER_PREF_WARNINGS
     if (PR_IntervalNow() - start > 3) {
       printf_stderr("Slow alloc %i\n", PR_IntervalNow() - start);
     }
     start = PR_IntervalNow();
 #endif
     SAMPLE_LABEL("BasicTiledLayerBuffer", "PaintThebesSingleBufferDraw");
-    mCallback(mThebesLayer, ctxt, aPaintRegion, aPaintRegion, mCallbackData);
+    mCallback(mThebesLayer, ctxt, aPaintRegion, nsIntRegion(), mCallbackData);
   }
 
 #ifdef GFX_TILEDLAYER_PREF_WARNINGS
   if (PR_IntervalNow() - start > 30) {
     const nsIntRect bounds = aPaintRegion.GetBounds();
     printf_stderr("Time to draw %i: %i, %i, %i, %i\n", PR_IntervalNow() - start, bounds.x, bounds.y, bounds.width, bounds.height);
     if (aPaintRegion.IsComplex()) {
       printf_stderr("Complex region\n");