Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Unified Diff: cc/blink/web_layer_impl.cc

Issue 1648293003: Fix smooth scroll jump when switching scroll handling between MT and CC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: skip irrelevant test on mac Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/blink/web_layer_impl.h ('k') | cc/input/main_thread_scrolling_reason.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_layer_impl.cc
diff --git a/cc/blink/web_layer_impl.cc b/cc/blink/web_layer_impl.cc
index e497d3303c342c530cb02e7534d4464ae90b8dfe..eed02ff4e848139fcda65603edaa7b1aee38e01d 100644
--- a/cc/blink/web_layer_impl.cc
+++ b/cc/blink/web_layer_impl.cc
@@ -320,8 +320,14 @@ void WebLayerImpl::addMainThreadScrollingReasons(
layer_->AddMainThreadScrollingReasons(main_thread_scrolling_reasons);
}
-void WebLayerImpl::clearMainThreadScrollingReasons() {
- layer_->ClearMainThreadScrollingReasons();
+void WebLayerImpl::clearMainThreadScrollingReasons(
+ uint32_t main_thread_scrolling_reasons_to_clear) {
+ layer_->ClearMainThreadScrollingReasons(
+ main_thread_scrolling_reasons_to_clear);
+}
+
+uint32_t WebLayerImpl::mainThreadScrollingReasons() {
+ return layer_->main_thread_scrolling_reasons();
}
bool WebLayerImpl::shouldScrollOnMainThread() const {
« no previous file with comments | « cc/blink/web_layer_impl.h ('k') | cc/input/main_thread_scrolling_reason.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698