summaryrefslogtreecommitdiff
path: root/chromium/cc/animation/keyframe_effect.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/cc/animation/keyframe_effect.h')
-rw-r--r--chromium/cc/animation/keyframe_effect.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/chromium/cc/animation/keyframe_effect.h b/chromium/cc/animation/keyframe_effect.h
index e7806e4cc1d..0e1280f82e1 100644
--- a/chromium/cc/animation/keyframe_effect.h
+++ b/chromium/cc/animation/keyframe_effect.h
@@ -22,6 +22,7 @@
namespace cc {
class Animation;
+enum class PauseCondition { kUnconditional, kAfterStart };
struct PropertyAnimationState;
// A KeyframeEffect owns a group of KeyframeModels for a single target
@@ -86,7 +87,8 @@ class CC_ANIMATION_EXPORT KeyframeEffect {
void UpdateState(bool start_ready_keyframe_models, AnimationEvents* events);
void UpdateTickingState();
- void Pause(base::TimeDelta pause_offset);
+ void Pause(base::TimeDelta pause_offset,
+ PauseCondition = PauseCondition::kUnconditional);
void AddKeyframeModel(std::unique_ptr<KeyframeModel> keyframe_model);
void PauseKeyframeModel(int keyframe_model_id, base::TimeDelta time_offset);
@@ -106,7 +108,6 @@ class CC_ANIMATION_EXPORT KeyframeEffect {
// Returns true if there are any KeyframeModels that have neither finished
// nor aborted.
bool HasTickingKeyframeModel() const;
- size_t TickingKeyframeModelsCount() const;
bool AffectsCustomProperty() const;