Browser side fling works with viz enabled.
This cl decouples the fling controller client for sending events from
the fling controller client for scheduling and progressing the fling.
The FlingScheduler implements the fling controller scheduling client.
It schedules fling by either adding the FlingController as an animation
observer to ui::Compositor or by Calling SetNeedsBeginFrame if the
compositor is not available.
BrowserSideFlingBrowserTest.TouchpadFling
[email protected]
Bug: 823310,249063
Test: BrowserSideFlingBrowserTest.TouchscreenFling,
Change-Id: I8c104daf41f87abdf0a78f3cb3d51274f279424b
Reviewed-on: https://chromium-review.googlesource.com/994181
Commit-Queue: Sahel Sharifymoghaddam <[email protected]>
Reviewed-by: Timothy Dresser <[email protected]>
Reviewed-by: Dave Tapuska <[email protected]>
Cr-Commit-Position: refs/heads/master@{#557171}
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
index 17e450a..e9c7c09 100644
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -1242,6 +1242,10 @@
"renderer_host/frame_token_message_queue.h",
"renderer_host/input/fling_controller.cc",
"renderer_host/input/fling_controller.h",
+ "renderer_host/input/fling_scheduler.cc",
+ "renderer_host/input/fling_scheduler.h",
+ "renderer_host/input/fling_scheduler_mac.h",
+ "renderer_host/input/fling_scheduler_mac.mm",
"renderer_host/input/gesture_event_queue.cc",
"renderer_host/input/gesture_event_queue.h",
"renderer_host/input/input_device_change_observer.cc",