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

Side by Side Diff: cc/layers/layer.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/input/main_thread_scrolling_reason.h ('k') | cc/layers/layer.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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 bool scrollable() const { return scroll_clip_layer_id_ != INVALID_ID; } 273 bool scrollable() const { return scroll_clip_layer_id_ != INVALID_ID; }
274 Layer* scroll_clip_layer() const; 274 Layer* scroll_clip_layer() const;
275 275
276 void SetUserScrollable(bool horizontal, bool vertical); 276 void SetUserScrollable(bool horizontal, bool vertical);
277 bool user_scrollable_horizontal() const { 277 bool user_scrollable_horizontal() const {
278 return user_scrollable_horizontal_; 278 return user_scrollable_horizontal_;
279 } 279 }
280 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } 280 bool user_scrollable_vertical() const { return user_scrollable_vertical_; }
281 281
282 void AddMainThreadScrollingReasons(uint32_t main_thread_scrolling_reasons); 282 void AddMainThreadScrollingReasons(uint32_t main_thread_scrolling_reasons);
283 void ClearMainThreadScrollingReasons(); 283 void ClearMainThreadScrollingReasons(
284 uint32_t main_thread_scrolling_reasons_to_clear);
284 uint32_t main_thread_scrolling_reasons() const { 285 uint32_t main_thread_scrolling_reasons() const {
285 return main_thread_scrolling_reasons_; 286 return main_thread_scrolling_reasons_;
286 } 287 }
287 bool should_scroll_on_main_thread() const { 288 bool should_scroll_on_main_thread() const {
288 return !!main_thread_scrolling_reasons_; 289 return !!main_thread_scrolling_reasons_;
289 } 290 }
290 291
291 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region); 292 void SetNonFastScrollableRegion(const Region& non_fast_scrollable_region);
292 const Region& non_fast_scrollable_region() const { 293 const Region& non_fast_scrollable_region() const {
293 return non_fast_scrollable_region_; 294 return non_fast_scrollable_region_;
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 789
789 std::vector<FrameTimingRequest> frame_timing_requests_; 790 std::vector<FrameTimingRequest> frame_timing_requests_;
790 bool frame_timing_requests_dirty_; 791 bool frame_timing_requests_dirty_;
791 792
792 DISALLOW_COPY_AND_ASSIGN(Layer); 793 DISALLOW_COPY_AND_ASSIGN(Layer);
793 }; 794 };
794 795
795 } // namespace cc 796 } // namespace cc
796 797
797 #endif // CC_LAYERS_LAYER_H_ 798 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/input/main_thread_scrolling_reason.h ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698