mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Don't draw diagnostic overlays during drawWindow. (bug 1379828, r=mattwoodrow)
This commit is contained in:
parent
868f84f2d8
commit
1b64928d17
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user