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

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

Issue 9222018: reland -- Disable animations during aura tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Gardening Created 8 years, 11 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 2fad33dff8e9ae7ebe2f0464516bf0bc9f40516f..a74bb77dc2181d37d3d2d8c7ae394edd17874715 100644
--- a/ui/gfx/compositor/layer_animation_sequence.h
+++ b/ui/gfx/compositor/layer_animation_sequence.h
@@ -65,6 +65,9 @@ class COMPOSITOR_EXPORT LayerAnimationSequence {
void set_is_cyclic(bool is_cyclic) { is_cyclic_ = is_cyclic; }
bool is_cyclic() const { return is_cyclic_; }
+ // Returns true if the sequence is currently animating.
+ bool is_animating() const { return is_animating_; }
+
// Returns true if this sequence has at least one element affecting a
// property in |other|.
bool HasCommonProperty(
@@ -108,6 +111,9 @@ class COMPOSITOR_EXPORT LayerAnimationSequence {
// True if the sequence should be looped forever.
bool is_cyclic_;
+ // True if the sequence is currently animating.
+ bool is_animating_;
+
// These are used when animating to efficiently find the next element.
size_t last_element_;
base::TimeDelta last_start_;

Powered by Google App Engine
This is Rietveld 408576698