mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
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:
parent
ba8efb79a8
commit
e725884022
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user