Bug 967473 - Fix layer diagnostics with tiling. r=BenWa
authorNicolas Silva <nical@mozilla.com>
Tue, 04 Feb 2014 17:18:10 +0100
changeset 166815 5e355d51e30f28d2d3254312922b6eaacc4a5914
parent 166814 1c9290033b333a3765ef16c45bf752fea0ba326f
child 166816 4f3b4bbccb54a0706e19e299d3feda6f2b63bf21
push id39291
push usernsilva@mozilla.com
push dateTue, 04 Feb 2014 20:32:15 +0000
treeherdermozilla-inbound@4f3b4bbccb54 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersBenWa
bugs967473
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 967473 - Fix layer diagnostics with tiling. r=BenWa
gfx/layers/composite/TiledContentHost.cpp
--- a/gfx/layers/composite/TiledContentHost.cpp
+++ b/gfx/layers/composite/TiledContentHost.cpp
@@ -200,19 +200,19 @@ TiledContentHost::RenderTile(const Tiled
     Rect textureRect(rect->x - aTextureOffset.x, rect->y - aTextureOffset.y,
                      rect->width, rect->height);
 
     effect->mTextureCoords = Rect(textureRect.x / aTextureBounds.width,
                                   textureRect.y / aTextureBounds.height,
                                   textureRect.width / aTextureBounds.width,
                                   textureRect.height / aTextureBounds.height);
     mCompositor->DrawQuad(graphicsRect, aClipRect, aEffectChain, aOpacity, aTransform);
-    mCompositor->DrawDiagnostics(DIAGNOSTIC_CONTENT|DIAGNOSTIC_TILE,
-                                 graphicsRect, aClipRect, aTransform);
   }
+  mCompositor->DrawDiagnostics(DIAGNOSTIC_CONTENT|DIAGNOSTIC_TILE,
+                               aScreenRegion, aClipRect, aTransform);
 
   aTile.mDeprecatedTextureHost->Unlock();
 }
 
 void
 TiledContentHost::RenderLayerBuffer(TiledLayerBufferComposite& aLayerBuffer,
                                     const nsIntRegion& aValidRegion,
                                     EffectChain& aEffectChain,