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

Side by Side Diff: cc/animation/animation_host.h

Issue 2040543002: Take MT jank into account when animating the scroll offset on CC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix constant Created 4 years, 6 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 #ifndef CC_ANIMATION_ANIMATION_HOST_H_ 5 #ifndef CC_ANIMATION_ANIMATION_HOST_H_
6 #define CC_ANIMATION_ANIMATION_HOST_H_ 6 #define CC_ANIMATION_ANIMATION_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <unordered_map> 9 #include <unordered_map>
10 10
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 float* max_scale) const; 133 float* max_scale) const;
134 bool AnimationStartScale(ElementId element_id, 134 bool AnimationStartScale(ElementId element_id,
135 ElementListType list_type, 135 ElementListType list_type,
136 float* start_scale) const; 136 float* start_scale) const;
137 137
138 bool HasAnyAnimation(ElementId element_id) const; 138 bool HasAnyAnimation(ElementId element_id) const;
139 bool HasActiveAnimationForTesting(ElementId element_id) const; 139 bool HasActiveAnimationForTesting(ElementId element_id) const;
140 140
141 void ImplOnlyScrollAnimationCreate(ElementId element_id, 141 void ImplOnlyScrollAnimationCreate(ElementId element_id,
142 const gfx::ScrollOffset& target_offset, 142 const gfx::ScrollOffset& target_offset,
143 const gfx::ScrollOffset& current_offset); 143 const gfx::ScrollOffset& current_offset,
144 base::TimeTicks original_event_time);
144 bool ImplOnlyScrollAnimationUpdateTarget( 145 bool ImplOnlyScrollAnimationUpdateTarget(
145 ElementId element_id, 146 ElementId element_id,
146 const gfx::Vector2dF& scroll_delta, 147 const gfx::Vector2dF& scroll_delta,
147 const gfx::ScrollOffset& max_scroll_offset, 148 const gfx::ScrollOffset& max_scroll_offset,
148 base::TimeTicks frame_monotonic_time); 149 base::TimeTicks frame_monotonic_time);
149 150
150 void ScrollAnimationAbort(bool needs_completion); 151 void ScrollAnimationAbort(bool needs_completion);
151 152
152 // This should only be called from the main thread. 153 // This should only be called from the main thread.
153 ScrollOffsetAnimations& scroll_offset_animations() const; 154 ScrollOffsetAnimations& scroll_offset_animations() const;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 200
200 bool supports_scroll_animations_; 201 bool supports_scroll_animations_;
201 bool animation_waiting_for_deletion_; 202 bool animation_waiting_for_deletion_;
202 203
203 DISALLOW_COPY_AND_ASSIGN(AnimationHost); 204 DISALLOW_COPY_AND_ASSIGN(AnimationHost);
204 }; 205 };
205 206
206 } // namespace cc 207 } // namespace cc
207 208
208 #endif // CC_ANIMATION_ANIMATION_HOST_H_ 209 #endif // CC_ANIMATION_ANIMATION_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | cc/animation/animation_host.cc » ('j') | cc/animation/scroll_offset_animation_curve.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698