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

Unified Diff: cc/animation/animation_player.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 | « no previous file | cc/animation/animation_player.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_player.h
diff --git a/cc/animation/animation_player.h b/cc/animation/animation_player.h
index df5572acfb7de221305dd3a391ede2b28de6205b..466e532831fcd2e71eda1eca7f4e09c7884f6fac 100644
--- a/cc/animation/animation_player.h
+++ b/cc/animation/animation_player.h
@@ -5,7 +5,6 @@
#ifndef CC_ANIMATION_ANIMATION_PLAYER_H_
#define CC_ANIMATION_ANIMATION_PLAYER_H_
-#include <bitset>
#include <vector>
#include "base/macros.h"
@@ -108,9 +107,7 @@ class CC_EXPORT AnimationPlayer : public base::RefCounted<AnimationPlayer> {
// Make animations affect active elements if and only if they affect
// pending elements. Any animations that no longer affect any elements
// are deleted.
- void ActivateAnimations(bool* changed_transform_animation,
- bool* changed_opacity_animation,
- bool* changed_filter_animation);
+ void ActivateAnimations();
bool HasFilterAnimationThatInflatesBounds() const;
bool HasTransformAnimationThatInflatesBounds() const;
@@ -151,8 +148,8 @@ class CC_EXPORT AnimationPlayer : public base::RefCounted<AnimationPlayer> {
// Returns the active animation for the given unique animation id.
Animation* GetAnimationById(int animation_id) const;
- void GetPropertyAnimationStateFor(TargetProperty::Type property,
- PropertyAnimationState* state) const;
+ void GetPropertyAnimationState(PropertyAnimationState* pending_state,
+ PropertyAnimationState* active_state) const;
private:
friend class base::RefCounted<AnimationPlayer>;
@@ -160,10 +157,6 @@ class CC_EXPORT AnimationPlayer : public base::RefCounted<AnimationPlayer> {
explicit AnimationPlayer(int id);
~AnimationPlayer();
- // A set of target properties. TargetProperty must be 0-based enum.
- using TargetProperties =
- std::bitset<TargetProperty::LAST_TARGET_PROPERTY + 1>;
-
void SetNeedsCommit();
void RegisterPlayer();
@@ -172,7 +165,7 @@ class CC_EXPORT AnimationPlayer : public base::RefCounted<AnimationPlayer> {
void BindElementAnimations();
void UnbindElementAnimations();
- void AnimationAddedForProperty(TargetProperty::Type target_property);
+ void AnimationAdded();
void MarkAbortedAnimationsForDeletion(
AnimationPlayer* animation_player_impl) const;
« no previous file with comments | « no previous file | cc/animation/animation_player.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698