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

Side by Side Diff: cc/layers/layer_impl.h

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: finish animations on main 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 unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } 492 bool user_scrollable_vertical() const { return user_scrollable_vertical_; }
493 493
494 bool user_scrollable(ScrollbarOrientation orientation) const; 494 bool user_scrollable(ScrollbarOrientation orientation) const;
495 495
496 void ApplySentScrollDeltasFromAbortedCommit(); 496 void ApplySentScrollDeltasFromAbortedCommit();
497 497
498 void set_main_thread_scrolling_reasons( 498 void set_main_thread_scrolling_reasons(
499 uint32_t main_thread_scrolling_reasons) { 499 uint32_t main_thread_scrolling_reasons) {
500 main_thread_scrolling_reasons_ = main_thread_scrolling_reasons; 500 main_thread_scrolling_reasons_ = main_thread_scrolling_reasons;
501 } 501 }
502
503 uint32_t main_thread_scrolling_reasons() const { 502 uint32_t main_thread_scrolling_reasons() const {
504 return main_thread_scrolling_reasons_; 503 return main_thread_scrolling_reasons_;
505 } 504 }
506
507 bool should_scroll_on_main_thread() const { 505 bool should_scroll_on_main_thread() const {
508 return !!main_thread_scrolling_reasons_; 506 return !!main_thread_scrolling_reasons_;
509 } 507 }
510 508
511 void SetNonFastScrollableRegion(const Region& region) { 509 void SetNonFastScrollableRegion(const Region& region) {
512 non_fast_scrollable_region_ = region; 510 non_fast_scrollable_region_ = region;
513 } 511 }
514 const Region& non_fast_scrollable_region() const { 512 const Region& non_fast_scrollable_region() const {
515 return non_fast_scrollable_region_; 513 return non_fast_scrollable_region_;
516 } 514 }
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 // If true, the layer or one of its descendants has a touch handler. 873 // If true, the layer or one of its descendants has a touch handler.
876 bool layer_or_descendant_has_touch_handler_; 874 bool layer_or_descendant_has_touch_handler_;
877 bool sorted_for_recursion_; 875 bool sorted_for_recursion_;
878 876
879 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 877 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
880 }; 878 };
881 879
882 } // namespace cc 880 } // namespace cc
883 881
884 #endif // CC_LAYERS_LAYER_IMPL_H_ 882 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698