зеркало из https://github.com/mozilla/gecko-dev.git
Don't draw diagnostic overlays during drawWindow. (bug 1379828, r=mattwoodrow)
This commit is contained in:
Родитель
868f84f2d8
Коммит
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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче