From 983bb1b63aa063ad8cd15517ced8436c4970e9e5 Mon Sep 17 00:00:00 2001 From: "Matt Woodrow ext:(%2C%20Miko%20Mynttinen%20%3Cmikokm%40gmail.com%3E%2C%20Timothy%20Nikkel%20%3Ctnikkel%40gmail.com%3E)" Date: Thu, 28 Sep 2017 13:42:15 +1300 Subject: [PATCH] Bug 1404181 - Part 12: Add pref for retained display lists (starting with it disabled). r=mstange MozReview-Commit-ID: FgASuaoYMuc --HG-- extra : rebase_source : af1bfd3bb4be63aa6f6c27629b91c1aae924ad20 --- gfx/thebes/gfxPrefs.h | 1 + modules/libpref/init/all.js | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/gfx/thebes/gfxPrefs.h b/gfx/thebes/gfxPrefs.h index 7d59c2897cb6..3a53f71d0c52 100644 --- a/gfx/thebes/gfxPrefs.h +++ b/gfx/thebes/gfxPrefs.h @@ -662,6 +662,7 @@ private: DECL_GFX_PREF(Live, "layout.css.scroll-snap.prediction-sensitivity", ScrollSnapPredictionSensitivity, float, 0.750f); DECL_GFX_PREF(Live, "layout.css.scroll-snap.proximity-threshold", ScrollSnapProximityThreshold, int32_t, 200); DECL_GFX_PREF(Live, "layout.css.touch_action.enabled", TouchActionEnabled, bool, false); + DECL_GFX_PREF(Live, "layout.display-list.retain", LayoutRetainDisplayList, bool, true); 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.display-list.dump-parent", LayoutDumpDisplayListParent, bool, false); diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 6c841ce5d53d..1e9f08c52823 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -3132,6 +3132,13 @@ pref("layout.display-list.dump", false); pref("layout.display-list.dump-content", false); pref("layout.display-list.dump-parent", false); +// Toggle retaining display lists between paints +#ifdef ANDROID +pref("layout.display-list.retain", false); +#else +pref("layout.display-list.retain", false); +#endif + // pref to control whether layout warnings that are hit quite often are enabled pref("layout.spammy_warnings.enabled", false);