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

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

Issue 2863103002: Reduce composited smooth scroll latency by a frame (also fixes latency UMAs). (Closed)
Patch Set: Cleanup. Created 3 years, 7 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 | « no previous file | cc/animation/animation_host.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 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 #include <vector> 10 #include <vector>
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 bool MaximumTargetScale(ElementId element_id, 148 bool MaximumTargetScale(ElementId element_id,
149 ElementListType list_type, 149 ElementListType list_type,
150 float* max_scale) const override; 150 float* max_scale) const override;
151 bool AnimationStartScale(ElementId element_id, 151 bool AnimationStartScale(ElementId element_id,
152 ElementListType list_type, 152 ElementListType list_type,
153 float* start_scale) const override; 153 float* start_scale) const override;
154 154
155 bool HasAnyAnimation(ElementId element_id) const override; 155 bool HasAnyAnimation(ElementId element_id) const override;
156 bool HasTickingAnimationForTesting(ElementId element_id) const override; 156 bool HasTickingAnimationForTesting(ElementId element_id) const override;
157 157
158 void ImplOnlyScrollAnimationCreate(ElementId element_id, 158 void ImplOnlyScrollAnimationCreate(
159 const gfx::ScrollOffset& target_offset, 159 ElementId element_id,
160 const gfx::ScrollOffset& current_offset, 160 const gfx::ScrollOffset& target_offset,
161 base::TimeDelta delayed_by) override; 161 const gfx::ScrollOffset& current_offset,
162 base::TimeDelta delayed_by,
163 base::TimeDelta animation_start_offset) override;
162 bool ImplOnlyScrollAnimationUpdateTarget( 164 bool ImplOnlyScrollAnimationUpdateTarget(
163 ElementId element_id, 165 ElementId element_id,
164 const gfx::Vector2dF& scroll_delta, 166 const gfx::Vector2dF& scroll_delta,
165 const gfx::ScrollOffset& max_scroll_offset, 167 const gfx::ScrollOffset& max_scroll_offset,
166 base::TimeTicks frame_monotonic_time, 168 base::TimeTicks frame_monotonic_time,
167 base::TimeDelta delayed_by) override; 169 base::TimeDelta delayed_by) override;
168 170
169 void ScrollAnimationAbort() override; 171 void ScrollAnimationAbort() override;
170 172
171 // This should only be called from the main thread. 173 // This should only be called from the main thread.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 210
209 bool supports_scroll_animations_; 211 bool supports_scroll_animations_;
210 bool needs_push_properties_; 212 bool needs_push_properties_;
211 213
212 DISALLOW_COPY_AND_ASSIGN(AnimationHost); 214 DISALLOW_COPY_AND_ASSIGN(AnimationHost);
213 }; 215 };
214 216
215 } // namespace cc 217 } // namespace cc
216 218
217 #endif // CC_ANIMATION_ANIMATION_HOST_H_ 219 #endif // CC_ANIMATION_ANIMATION_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | cc/animation/animation_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698