Bug 1528775 - Disable immediate handoff on all platforms. r=tnikkel

Differential Revision: https://phabricator.services.mozilla.com/D41434

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Botond Ballo 2019-08-09 19:45:57 +00:00
Родитель daf2309ee2
Коммит 84e43ba944
4 изменённых файлов: 12 добавлений и 3 удалений

Просмотреть файл

@ -188,6 +188,8 @@ class APZScrollHandoffTester : public APZCTreeManagerTester {
// wait for content to send a prevent-default message, overscroll is still
// handed off correctly when the block is processed.
TEST_F(APZScrollHandoffTester, DeferredInputEventProcessing) {
SCOPED_GFX_PREF_BOOL("apz.allow_immediate_handoff", true);
// Set up the APZC tree.
CreateScrollHandoffLayerTree1();
@ -216,6 +218,8 @@ TEST_F(APZScrollHandoffTester, DeferredInputEventProcessing) {
// the original layer structure while overscroll handoff for the second block
// follows the new layer structure.
TEST_F(APZScrollHandoffTester, LayerStructureChangesWhileEventsArePending) {
SCOPED_GFX_PREF_BOOL("apz.allow_immediate_handoff", true);
// Set up an initial APZC tree.
CreateScrollHandoffLayerTree1();
@ -476,6 +480,7 @@ TEST_F(APZScrollHandoffTester, PartialFlingHandoff) {
// Here we test that if two flings are happening simultaneously, overscroll
// is handed off correctly for each.
TEST_F(APZScrollHandoffTester, SimultaneousFlings) {
SCOPED_GFX_PREF_BOOL("apz.allow_immediate_handoff", true);
SCOPED_GFX_PREF_FLOAT("apz.fling_min_velocity_threshold", 0.0f);
// Set up an initial APZC tree.
@ -508,6 +513,8 @@ TEST_F(APZScrollHandoffTester, SimultaneousFlings) {
}
TEST_F(APZScrollHandoffTester, Scrollgrab) {
SCOPED_GFX_PREF_BOOL("apz.allow_immediate_handoff", true);
// Set up the layer tree
CreateScrollgrabLayerTree();
@ -523,6 +530,7 @@ TEST_F(APZScrollHandoffTester, Scrollgrab) {
}
TEST_F(APZScrollHandoffTester, ScrollgrabFling) {
SCOPED_GFX_PREF_BOOL("apz.allow_immediate_handoff", true);
SCOPED_GFX_PREF_FLOAT("apz.fling_min_velocity_threshold", 0.0f);
// Set up the layer tree
@ -539,6 +547,7 @@ TEST_F(APZScrollHandoffTester, ScrollgrabFling) {
}
TEST_F(APZScrollHandoffTester, ScrollgrabFlingAcceleration1) {
SCOPED_GFX_PREF_BOOL("apz.allow_immediate_handoff", true);
SCOPED_GFX_PREF_FLOAT("apz.fling_min_velocity_threshold", 0.0f);
SCOPED_GFX_VAR(UseWebRender, bool, false);
CreateScrollgrabLayerTree(true /* make parent scrollable */);
@ -546,6 +555,7 @@ TEST_F(APZScrollHandoffTester, ScrollgrabFlingAcceleration1) {
}
TEST_F(APZScrollHandoffTester, ScrollgrabFlingAcceleration2) {
SCOPED_GFX_PREF_BOOL("apz.allow_immediate_handoff", true);
SCOPED_GFX_PREF_FLOAT("apz.fling_min_velocity_threshold", 0.0f);
SCOPED_GFX_VAR(UseWebRender, bool, false);
CreateScrollgrabLayerTree(false /* do not make parent scrollable */);

Просмотреть файл

@ -477,7 +477,6 @@ pref("layers.async-video.enabled", true);
// APZ physics settings (fling acceleration, fling curving and axis lock) have
// been reviewed by UX
pref("apz.allow_immediate_handoff", false);
pref("apz.axis_lock.breakout_angle", "0.7853982"); // PI / 4 (45 degrees)
pref("apz.axis_lock.mode", 1); // Use "strict" axis locking
pref("apz.content_response_timeout", 600);

Просмотреть файл

@ -185,7 +185,7 @@
- name: apz.allow_immediate_handoff
type: RelaxedAtomicBool
value: true
value: false
mirror: always
- name: apz.allow_zooming

Просмотреть файл

@ -685,7 +685,7 @@ pref("layers.geometry.d3d11.enabled", true);
// APZ preferences. For documentation/details on what these prefs do, check
// gfx/layers/apz/src/AsyncPanZoomController.cpp.
pref("apz.allow_double_tap_zooming", true);
pref("apz.allow_immediate_handoff", true);
pref("apz.allow_immediate_handoff", false);
pref("apz.allow_zooming", false);
pref("apz.android.chrome_fling_physics.enabled", true);
pref("apz.android.chrome_fling_physics.friction", "0.015");