Don't draw diagnostic overlays during drawWindow. (bug 1379828, r=mattwoodrow)

This commit is contained in:
David Anderson 2017-07-10 19:09:34 -07:00
parent 868f84f2d8
commit 1b64928d17
2 changed files with 7 additions and 1 deletions

View File

@ -603,6 +603,11 @@ LayerManagerComposite::RenderDebugOverlay(const IntRect& aBounds)
bool drawFps = gfxPrefs::LayersDrawFPS();
bool drawFrameColorBars = gfxPrefs::CompositorDrawColorBars();
// Don't draw diagnostic overlays if we want to snapshot the output.
if (mTarget) {
return;
}
if (drawFps) {
float alpha = 1;
#ifdef ANDROID

View File

@ -263,7 +263,8 @@ LayerManagerMLGPU::EndTransaction(const TimeStamp& aTimeStamp, EndTransactionFla
}
}
mDrawDiagnostics = gfxPrefs::LayersDrawFPS();
// Don't draw the diagnostic overlay if we want to snapshot the output.
mDrawDiagnostics = gfxPrefs::LayersDrawFPS() && !mTarget;
mUsingInvalidation = gfxPrefs::AdvancedLayersUseInvalidation();
// Compute transforms - and the changed area, if enabled.