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

Unified Diff: ui/gfx/compositor/layer_animation_sequence.cc

Issue 8362006: Reland r107720 - Enable the new layer animation framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address reviewer comments. Created 9 years, 2 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: ui/gfx/compositor/layer_animation_sequence.cc
diff --git a/ui/gfx/compositor/layer_animation_sequence.cc b/ui/gfx/compositor/layer_animation_sequence.cc
index c0e303771718ae6659cc6518f0f764f8a35d13cc..cafe819ceee06c342453e79d636377ce1d60865d 100644
--- a/ui/gfx/compositor/layer_animation_sequence.cc
+++ b/ui/gfx/compositor/layer_animation_sequence.cc
@@ -68,6 +68,15 @@ void LayerAnimationSequence::Progress(base::TimeDelta elapsed,
}
}
+void LayerAnimationSequence::GetTargetValue(
+ LayerAnimationElement::TargetValue* target) const {
+ if (is_cyclic_)
+ return;
+
+ for (size_t i = last_element_; i < elements_.size(); ++i)
+ elements_[i]->GetTargetValue(target);
+}
+
void LayerAnimationSequence::Abort() {
size_t current_index = last_element_ % elements_.size();
while (current_index < elements_.size()) {

Powered by Google App Engine
This is Rietveld 408576698