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

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: 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 unified diff | Download patch
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } 501 bool user_scrollable_vertical() const { return user_scrollable_vertical_; }
502 502
503 bool user_scrollable(ScrollbarOrientation orientation) const; 503 bool user_scrollable(ScrollbarOrientation orientation) const;
504 504
505 void ApplySentScrollDeltasFromAbortedCommit(); 505 void ApplySentScrollDeltasFromAbortedCommit();
506 506
507 void set_main_thread_scrolling_reasons( 507 void set_main_thread_scrolling_reasons(
508 uint32_t main_thread_scrolling_reasons) { 508 uint32_t main_thread_scrolling_reasons) {
509 main_thread_scrolling_reasons_ = main_thread_scrolling_reasons; 509 main_thread_scrolling_reasons_ = main_thread_scrolling_reasons;
510 } 510 }
511
512 uint32_t main_thread_scrolling_reasons() const { 511 uint32_t main_thread_scrolling_reasons() const {
513 return main_thread_scrolling_reasons_; 512 return main_thread_scrolling_reasons_;
514 } 513 }
515
516 bool should_scroll_on_main_thread() const { 514 bool should_scroll_on_main_thread() const {
517 return !!main_thread_scrolling_reasons_; 515 return !!main_thread_scrolling_reasons_;
518 } 516 }
519 517
520 void SetNonFastScrollableRegion(const Region& region) { 518 void SetNonFastScrollableRegion(const Region& region) {
521 non_fast_scrollable_region_ = region; 519 non_fast_scrollable_region_ = region;
522 } 520 }
523 const Region& non_fast_scrollable_region() const { 521 const Region& non_fast_scrollable_region() const {
524 return non_fast_scrollable_region_; 522 return non_fast_scrollable_region_;
525 } 523 }
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 // If true, the layer or one of its descendants has a touch handler. 874 // If true, the layer or one of its descendants has a touch handler.
877 bool layer_or_descendant_has_touch_handler_; 875 bool layer_or_descendant_has_touch_handler_;
878 bool sorted_for_recursion_; 876 bool sorted_for_recursion_;
879 877
880 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 878 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
881 }; 879 };
882 880
883 } // namespace cc 881 } // namespace cc
884 882
885 #endif // CC_LAYERS_LAYER_IMPL_H_ 883 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698