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

Unified Diff: cc/input/single_scrollbar_animation_controller_thinning.h

Issue 2824693002: Refactor LayerTreeImpl's scrollbar map to be keyed on element ids (Closed)
Patch Set: rebase Created 3 years, 8 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
Index: cc/input/single_scrollbar_animation_controller_thinning.h
diff --git a/cc/input/single_scrollbar_animation_controller_thinning.h b/cc/input/single_scrollbar_animation_controller_thinning.h
index 32ba069a12bceb660e7a50f3088752af02bb4ca0..f07806c39f29eca5f3e130aff5aadba99f10bcc4 100644
--- a/cc/input/single_scrollbar_animation_controller_thinning.h
+++ b/cc/input/single_scrollbar_animation_controller_thinning.h
@@ -26,7 +26,7 @@ class CC_EXPORT SingleScrollbarAnimationControllerThinning {
static constexpr float kDefaultMouseMoveDistanceToTriggerAnimation = 25.f;
static std::unique_ptr<SingleScrollbarAnimationControllerThinning> Create(
- int scroll_layer_id,
+ ElementId scroll_element_id,
ScrollbarOrientation orientation,
ScrollbarAnimationControllerClient* client,
base::TimeDelta thinning_duration);
@@ -50,7 +50,7 @@ class CC_EXPORT SingleScrollbarAnimationControllerThinning {
private:
SingleScrollbarAnimationControllerThinning(
- int scroll_layer_id,
+ ElementId scroll_element_id,
ScrollbarOrientation orientation,
ScrollbarAnimationControllerClient* client,
base::TimeDelta thinning_duration);
@@ -76,7 +76,7 @@ class CC_EXPORT SingleScrollbarAnimationControllerThinning {
base::TimeTicks last_awaken_time_;
bool is_animating_;
- int scroll_layer_id_;
+ ElementId scroll_element_id_;
ScrollbarOrientation orientation_;
bool captured_;
« no previous file with comments | « cc/input/scrollbar_animation_controller_unittest.cc ('k') | cc/input/single_scrollbar_animation_controller_thinning.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698