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

Unified Diff: cc/trees/mutator_host_client.h

Issue 2357533002: CC Animation: Use std::bitset to update animation state. (Closed)
Patch Set: Reparent. Created 4 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
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/mutator_host_client.h
diff --git a/cc/trees/mutator_host_client.h b/cc/trees/mutator_host_client.h
index db60dd30c78c3d1b0c23b134a5e68dfeaf8c7076..421e01ce4eb5a7989d6e560ec89220ebd45e7346 100644
--- a/cc/trees/mutator_host_client.h
+++ b/cc/trees/mutator_host_client.h
@@ -5,7 +5,10 @@
#ifndef CC_TREES_MUTATOR_HOST_CLIENT_H_
#define CC_TREES_MUTATOR_HOST_CLIENT_H_
+// TODO(loyso) Move these headers out of cc/animation.
#include "cc/animation/element_id.h"
+#include "cc/animation/property_animation_state.h"
+#include "cc/animation/target_property.h"
namespace gfx {
class Transform;
@@ -42,21 +45,12 @@ class MutatorHostClient {
ElementListType list_type,
const gfx::ScrollOffset& scroll_offset) = 0;
- virtual void ElementTransformIsAnimatingChanged(
+ // Allows to change IsAnimating value for a set of properties.
+ virtual void ElementIsAnimatingChanged(
ElementId element_id,
ElementListType list_type,
- AnimationChangeType change_type,
- bool is_animating) = 0;
-
- virtual void ElementOpacityIsAnimatingChanged(ElementId element_id,
- ElementListType list_type,
- AnimationChangeType change_type,
- bool is_animating) = 0;
-
- virtual void ElementFilterIsAnimatingChanged(ElementId element_id,
- ElementListType list_type,
- AnimationChangeType change_type,
- bool is_animating) = 0;
+ const PropertyAnimationState& mask,
+ const PropertyAnimationState& state) = 0;
virtual void ScrollOffsetAnimationFinished() = 0;
virtual gfx::ScrollOffset GetScrollOffsetForAnimation(
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698