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

Side by Side Diff: cc/input/scroll_state_data.cc

Issue 2907053004: GSB uses delta_hints to calculate scrolling chain. (Closed)
Patch Set: Merge branch 'master' into GSB_checks_delta_hints Created 3 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "cc/input/scroll_state_data.h" 5 #include "cc/input/scroll_state_data.h"
6 #include "cc/trees/scroll_node.h" 6 #include "cc/trees/scroll_node.h"
7 7
8 namespace cc { 8 namespace cc {
9 9
10 ScrollStateData::ScrollStateData() 10 ScrollStateData::ScrollStateData()
11 : delta_x(0), 11 : delta_x(0),
12 delta_y(0), 12 delta_y(0),
13 delta_x_hint(0),
14 delta_y_hint(0),
15 ignore_delta_hints(false),
13 position_x(0), 16 position_x(0),
14 position_y(0), 17 position_y(0),
15 velocity_x(0), 18 velocity_x(0),
16 velocity_y(0), 19 velocity_y(0),
17 is_beginning(false), 20 is_beginning(false),
18 is_in_inertial_phase(false), 21 is_in_inertial_phase(false),
19 is_ending(false), 22 is_ending(false),
20 should_propagate(false), 23 should_propagate(false),
21 from_user_input(false), 24 from_user_input(false),
22 delta_consumed_for_scroll_sequence(false), 25 delta_consumed_for_scroll_sequence(false),
(...skipping 21 matching lines...) Expand all
44 return current_native_scrolling_element_; 47 return current_native_scrolling_element_;
45 } 48 }
46 49
47 void ScrollStateData::set_current_native_scrolling_element( 50 void ScrollStateData::set_current_native_scrolling_element(
48 ElementId element_id) { 51 ElementId element_id) {
49 current_native_scrolling_element_ = element_id; 52 current_native_scrolling_element_ = element_id;
50 current_native_scrolling_node_ = nullptr; 53 current_native_scrolling_node_ = nullptr;
51 } 54 }
52 55
53 } // namespace cc 56 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698