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

Unified Diff: cc/animation/animation_host.h

Issue 1010663002: CC Animations: Redirect all compositor animation requests to AnimationHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@introduce
Patch Set: Rebase. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/BUILD.gn ('k') | cc/animation/animation_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_host.h
diff --git a/cc/animation/animation_host.h b/cc/animation/animation_host.h
index 5ae46ee07de64bb997d92510e44e7fb6d308478f..2887ad8d8f8e767cee5a5c7efa125ca89e38d159 100644
--- a/cc/animation/animation_host.h
+++ b/cc/animation/animation_host.h
@@ -10,6 +10,8 @@
#include "base/containers/scoped_ptr_hash_map.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/time/time.h"
+#include "cc/animation/animation_events.h"
#include "cc/base/cc_export.h"
#include "cc/trees/mutator_host_client.h"
@@ -73,6 +75,51 @@ class CC_EXPORT AnimationHost {
return animation_registrar_.get();
}
+ void SetSupportsScrollAnimations(bool supports_scroll_animations);
+ bool SupportsScrollAnimations() const;
+ bool NeedsAnimateLayers() const;
+
+ bool ActivateAnimations();
+ bool AnimateLayers(base::TimeTicks monotonic_time);
+ bool UpdateAnimationState(bool start_ready_animations,
+ AnimationEventsVector* events);
+
+ scoped_ptr<AnimationEventsVector> CreateEvents();
+ void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events);
+
+ bool ScrollOffsetAnimationWasInterrupted(int layer_id) const;
+
+ bool IsAnimatingFilterProperty(int layer_id) const;
+ bool IsAnimatingOpacityProperty(int layer_id) const;
+ bool IsAnimatingTransformProperty(int layer_id) const;
+
+ bool HasPotentiallyRunningOpacityAnimation(int layer_id) const;
+ bool HasPotentiallyRunningTransformAnimation(int layer_id) const;
+
+ bool FilterIsAnimatingOnImplOnly(int layer_id) const;
+ bool OpacityIsAnimatingOnImplOnly(int layer_id) const;
+ bool TransformIsAnimatingOnImplOnly(int layer_id) const;
+
+ bool HasFilterAnimationThatInflatesBounds(int layer_id) const;
+ bool HasTransformAnimationThatInflatesBounds(int layer_id) const;
+ bool HasAnimationThatInflatesBounds(int layer_id) const;
+
+ bool FilterAnimationBoundsForBox(int layer_id,
+ const gfx::BoxF& box,
+ gfx::BoxF* bounds) const;
+ bool TransformAnimationBoundsForBox(int layer_id,
+ const gfx::BoxF& box,
+ gfx::BoxF* bounds) const;
+
+ bool HasOnlyTranslationTransforms(int layer_id) const;
+ bool AnimationsPreserveAxisAlignment(int layer_id) const;
+
+ bool MaximumTargetScale(int layer_id, float* max_scale) const;
+ bool AnimationStartScale(int layer_id, float* start_scale) const;
+
+ bool HasAnyAnimation(int layer_id) const;
+ bool HasActiveAnimation(int layer_id) const;
+
private:
explicit AnimationHost(ThreadInstance thread_instance);
« no previous file with comments | « cc/BUILD.gn ('k') | cc/animation/animation_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698