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
Родитель 868f84f2d8
Коммит 1b64928d17
2 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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.