Async Scrolling Improvements
WPE WebKit and WebKitGTK support async scrolling for wheel events. I landed several improvements for the upcoming 2.52 release.
- Bug 305451 – wheel event async scrolling doesn’t start while the main thread is blocked
- Bug 305560 – rendering glitches for unpainted tiles
- Bug 305561 – Paint scrollbars in the scrolling thread for async scrolling
Here are videos of before and after the changes. This is the test content.
There is still room for further improvement.
- The scrollbar hiding animation timer is still running in the main thread.
- It can use CoordinatedPlatformLayer::setAnimations.
- Or CoordinatedPlatformLayer::setOpacity.
- Add the showing animation and transition animations of mouse hover states like GTK Adwaita theme
- Support touch and gesture events async scrolling