Add fractional scroll offsets to about:flags
This will allow us to easily turn the feature on and off for testing.
This CL adds a Feature for the Blink RuntimeEnabledFeature and plumbs
it through to about:flags.
Today, Blink stores scroll offsets for scrollers using integral
values. For user scrolls, we can apply subpixel precision deltas
(e.g. on high DPI screens or if the user zooms) since the compositor
stores a floating-point scroll offset. However, when the offset is
sent to/received from Blink it is truncated. Therefore, script set
and read offsets are always integer values (of physical pixels).
The FractionalScrollOffsets feature allows Blink to store offsets in
a floating point representation. This will reduce bugs and maintenance
burdens related to the truncation between CC/Blink. It also helps fix
issues in the web platform as WebAPIs will now store and return any
number in the floating point range.
Bug: 414283
Change-Id: I036402977204821ba92b592c1c88c2b46e64c7dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1753546
Reviewed-by: Dave Tapuska <[email protected]>
Reviewed-by: Scott Violet <[email protected]>
Commit-Queue: David Bokan <[email protected]>
Cr-Commit-Position: refs/heads/master@{#687346}
diff --git a/chrome/browser/flag_descriptions.h b/chrome/browser/flag_descriptions.h
index 88f470b..e76bdfd 100644
--- a/chrome/browser/flag_descriptions.h
+++ b/chrome/browser/flag_descriptions.h
@@ -599,6 +599,9 @@
extern const char kFilteringScrollPredictionName[];
extern const char kFilteringScrollPredictionDescription[];
+extern const char kFractionalScrollOffsetsName[];
+extern const char kFractionalScrollOffsetsDescription[];
+
extern const char kForceEffectiveConnectionTypeName[];
extern const char kForceEffectiveConnectionTypeDescription[];
extern const char kEffectiveConnectionTypeUnknownDescription[];