Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Unified Diff: content/public/common/content_switches.cc

Issue 479653003: Replace enable-compositing-for-fixed-position with prefer-compositing-to-lcd-text. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/common/content_switches.cc
diff --git a/content/public/common/content_switches.cc b/content/public/common/content_switches.cc
index 43bbe32b1b0ea01925aaf969e2878c7ae444738d..6c129b82ab3d111b777a6159d318eed0ebfa3d69 100644
--- a/content/public/common/content_switches.cc
+++ b/content/public/common/content_switches.cc
@@ -105,9 +105,9 @@ const char kDisableApplicationCache[] = "disable-application-cache";
// users with many windows/tabs and lots of memory.
const char kDisableBackingStoreLimit[] = "disable-backing-store-limit";
-// See comment for kEnableCompositingForFixedPosition.
-const char kDisableCompositingForFixedPosition[] =
- "disable-fixed-position-compositing";
+// Disable the creation of compositing layers when it would prevent LCD text.
+const char kDisablePreferCompositingToLCDText[] =
+ "disable-prefer-compositing-to-lcd-text";
// See comment for kEnableCompositingForTransition.
const char kDisableCompositingForTransition[] =
@@ -311,18 +311,9 @@ const char kEnableContainerCulling[] = "enable-container-culling";
// Use a BeginFrame signal from browser to renderer to schedule rendering.
const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling";
-// Enable the creation of compositing layers for fixed position
-// elements. Three options are needed to support four possible scenarios:
-// 1. Default (disabled)
-// 2. Enabled always (to allow dogfooding)
-// 3. Disabled always (to give safety fallback for users)
-// 4. Enabled only if we detect a highDPI display
-//
-// Option #4 may soon be the default, because the feature is needed soon for
-// high DPI, but cannot be used (yet) for low DPI. Options #2 and #3 will
-// override Option #4.
-const char kEnableCompositingForFixedPosition[] =
- "enable-fixed-position-compositing";
+// Enable the creation of compositing layers when it would prevent LCD text.
+const char kEnablePreferCompositingToLCDText[] =
+ "enable-prefer-compositing-to-lcd-text";
// Enable/Disable the creation of compositing layers for RenderLayers with a
// transition on a property that supports accelerated animation (that is,
@@ -373,10 +364,6 @@ const char kEnableGpuRasterization[] = "enable-gpu-rasterization";
// tiles may be displayed during fast scrolls especially on slower devices.
const char kEnableLowResTiling[] = "enable-low-res-tiling";
-// See comment for kEnableCompositingForFixedPosition.
-const char kEnableHighDpiCompositingForFixedPosition[] =
danakj 2014/08/15 21:11:12 This flag was just sitting around here doing nothi
- "enable-high-dpi-fixed-position-compositing";
-
// Paint content on the compositor thread instead of the main thread.
const char kEnableImplSidePainting[] = "enable-impl-side-painting";

Powered by Google App Engine
This is Rietveld 408576698