Bug 1262304 - Add a pref to dump display lists for the content process. r=BenWa

--HG--
extra : rebase_source : 09ce025ea6029b1269f65e6e740b5166e8d15aa9
This commit is contained in:
Matt Woodrow 2016-04-06 15:29:57 +12:00
parent ba8efb79a8
commit e725884022
3 changed files with 4 additions and 1 deletions

View File

@ -401,6 +401,7 @@ private:
DECL_GFX_PREF(Live, "layout.css.scroll-snap.proximity-threshold", ScrollSnapProximityThreshold, int32_t, 200);
DECL_GFX_PREF(Once, "layout.css.touch_action.enabled", TouchActionEnabled, bool, false);
DECL_GFX_PREF(Live, "layout.display-list.dump", LayoutDumpDisplayList, bool, false);
DECL_GFX_PREF(Live, "layout.display-list.dump-content", LayoutDumpDisplayListContent, bool, false);
DECL_GFX_PREF(Live, "layout.event-regions.enabled", LayoutEventRegionsEnabledDoNotUseDirectly, bool, false);
DECL_GFX_PREF(Once, "layout.frame_rate", LayoutFrameRate, int32_t, -1);
DECL_GFX_PREF(Once, "layout.paint_rects_separately", LayoutPaintRectsSeparately, bool, true);

View File

@ -1554,7 +1554,8 @@ gfxUtils::ThreadSafeGetFeatureStatus(const nsCOMPtr<nsIGfxInfo>& gfxInfo,
/* static */ bool
gfxUtils::DumpDisplayList() {
return gfxPrefs::LayoutDumpDisplayList();
return gfxPrefs::LayoutDumpDisplayList() ||
(gfxPrefs::LayoutDumpDisplayListContent() && XRE_IsContentProcess());
}
FILE *gfxUtils::sDumpPaintFile = stderr;

View File

@ -2533,6 +2533,7 @@ pref("layout.frame_rate", -1);
// pref to dump the display list to the log. Useful for debugging drawing.
pref("layout.display-list.dump", false);
pref("layout.display-list.dump-content", false);
// pref to control precision of the frame rate timer. When true,
// we use a "precise" timer, which means each notification fires