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

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

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.h
diff --git a/ui/gfx/compositor/layer_animation_sequence.h b/ui/gfx/compositor/layer_animation_sequence.h
index 87673d7676608deec1b574ca9bd6109967350803..4670587880cfd7a6e2316ced81138095f4f56524 100644
--- a/ui/gfx/compositor/layer_animation_sequence.h
+++ b/ui/gfx/compositor/layer_animation_sequence.h
@@ -37,6 +37,10 @@ class COMPOSITOR_EXPORT LayerAnimationSequence {
// guaranteed that Animate will be called with elapsed = Duration().
void Progress(base::TimeDelta elapsed, LayerAnimationDelegate* delegate);
+ // Sets the target value to the value that would have been set had
+ // the sequence completed. Does nothing if the sequence is cyclic.
+ void GetTargetValue(LayerAnimationElement::TargetValue* target) const;
+
// Aborts the given animation.
void Abort();

Powered by Google App Engine
This is Rietveld 408576698