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

Unified Diff: cc/trees/layer_tree_impl.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/trees/layer_tree_host_unittest_animation_timelines.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index 11a59f74d88fba049e6e723a728176fa30356e01..973df9777339ddd913e421a8a934e68d74997b41 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -345,6 +345,33 @@ class CC_EXPORT LayerTreeImpl {
bool IsExternalScrollActive() const;
void DidUpdateScrollOffset(int layer_id);
+ bool IsAnimatingFilterProperty(const LayerImpl* layer) const;
+ bool IsAnimatingOpacityProperty(const LayerImpl* layer) const;
+ bool IsAnimatingTransformProperty(const LayerImpl* layer) const;
+
+ bool HasPotentiallyRunningOpacityAnimation(const LayerImpl* layer) const;
+ bool HasPotentiallyRunningTransformAnimation(const LayerImpl* layer) const;
+
+ bool FilterIsAnimatingOnImplOnly(const LayerImpl* layer) const;
+ bool OpacityIsAnimatingOnImplOnly(const LayerImpl* layer) const;
+ bool TransformIsAnimatingOnImplOnly(const LayerImpl* layer) const;
+
+ bool HasOnlyTranslationTransforms(const LayerImpl* layer) const;
+
+ bool MaximumTargetScale(const LayerImpl* layer, float* max_scale) const;
+ bool AnimationStartScale(const LayerImpl* layer, float* start_scale) const;
+
+ bool HasFilterAnimationThatInflatesBounds(const LayerImpl* layer) const;
+ bool HasTransformAnimationThatInflatesBounds(const LayerImpl* layer) const;
+ bool HasAnimationThatInflatesBounds(const LayerImpl* layer) const;
+
+ bool FilterAnimationBoundsForBox(const LayerImpl* layer,
+ const gfx::BoxF& box,
+ gfx::BoxF* bounds) const;
+ bool TransformAnimationBoundsForBox(const LayerImpl* layer,
+ const gfx::BoxF& box,
+ gfx::BoxF* bounds) const;
+
protected:
explicit LayerTreeImpl(
LayerTreeHostImpl* layer_tree_host_impl,
« no previous file with comments | « cc/trees/layer_tree_host_unittest_animation_timelines.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698