Commit 12674481 authored by Xianzhu Wang's avatar Xianzhu Wang Committed by Commit Bot

RuntimeEnabledFeatures::PreferNonCompositedScrolling

Extracted from pdr@'s https://chromium-review.googlesource.com/c/chromium/src/+/2209993/3.
For testing non-composited-scrolling without depending on volatile
composited-scrolling trigger rules based on style.

Change-Id: I173e517da6539ca42336704c0a20942ef1c1e12b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2213323
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
Reviewed-by: default avatarSam Fortiner <samfort@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#772053}
parent a205470e
...@@ -2528,7 +2528,8 @@ bool PaintLayerScrollableArea::ComputeNeedsCompositedScrollingInternal( ...@@ -2528,7 +2528,8 @@ bool PaintLayerScrollableArea::ComputeNeedsCompositedScrollingInternal(
} }
if (!force_prefer_compositing_to_lcd_text && if (!force_prefer_compositing_to_lcd_text &&
!LayerNodeMayNeedCompositedScrolling(layer_)) { (RuntimeEnabledFeatures::PreferNonCompositedScrollingEnabled() ||
!LayerNodeMayNeedCompositedScrolling(layer_))) {
return false; return false;
} }
......
...@@ -1437,6 +1437,14 @@ ...@@ -1437,6 +1437,14 @@
{ {
name: "PreciseMemoryInfo", name: "PreciseMemoryInfo",
}, },
// Prefer not using composited scrolling. Composited scrolling will still
// be used if there are other reasons forcing compositing. For consistency,
// any code calling Settings::GetPreferCompositingToLCDTextEnabled() should
// ensure that this flag overrides the setting.
{
name: "PreferNonCompositedScrolling",
settable_from_internals: true,
},
// This feature is deprecated and we are evangelizing affected sites. // This feature is deprecated and we are evangelizing affected sites.
// See https://crbug.com/346236 for current status. // See https://crbug.com/346236 for current status.
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment