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

Side by Side Diff: third_party/WebKit/Source/core/animation/KeyframeEffect.h

Issue 1944623002: CC Animation: Use ElementId to attach CC animation players. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@erasedomids
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 bool isCandidateForAnimationOnCompositor(double animationPlaybackRate) const ; 77 bool isCandidateForAnimationOnCompositor(double animationPlaybackRate) const ;
78 // Must only be called once. 78 // Must only be called once.
79 bool maybeStartAnimationOnCompositor(int group, double startTime, double tim eOffset, double animationPlaybackRate); 79 bool maybeStartAnimationOnCompositor(int group, double startTime, double tim eOffset, double animationPlaybackRate);
80 bool hasActiveAnimationsOnCompositor() const; 80 bool hasActiveAnimationsOnCompositor() const;
81 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; 81 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const;
82 bool cancelAnimationOnCompositor(); 82 bool cancelAnimationOnCompositor();
83 void restartAnimationOnCompositor(); 83 void restartAnimationOnCompositor();
84 void cancelIncompatibleAnimationsOnCompositor(); 84 void cancelIncompatibleAnimationsOnCompositor();
85 void pauseAnimationForTestingOnCompositor(double pauseTime); 85 void pauseAnimationForTestingOnCompositor(double pauseTime);
86 86
87 bool canAttachCompositedLayers() const; 87 bool canAttachCompositorPlayerToElement() const;
88 void attachCompositedLayers(); 88 void attachCompositorPlayerToElement();
89 89
90 void setCompositorAnimationIdsForTesting(const Vector<int>& compositorAnimat ionIds) { m_compositorAnimationIds = compositorAnimationIds; } 90 void setCompositorAnimationIdsForTesting(const Vector<int>& compositorAnimat ionIds) { m_compositorAnimationIds = compositorAnimationIds; }
91 91
92 DECLARE_VIRTUAL_TRACE(); 92 DECLARE_VIRTUAL_TRACE();
93 93
94 void downgradeToNormal() { m_priority = DefaultPriority; } 94 void downgradeToNormal() { m_priority = DefaultPriority; }
95 95
96 protected: 96 protected:
97 void applyEffects(); 97 void applyEffects();
98 void clearEffects(); 98 void clearEffects();
(...skipping 17 matching lines...) Expand all
116 Vector<int> m_compositorAnimationIds; 116 Vector<int> m_compositorAnimationIds;
117 117
118 friend class AnimationAnimationV8Test; 118 friend class AnimationAnimationV8Test;
119 }; 119 };
120 120
121 DEFINE_TYPE_CASTS(KeyframeEffect, AnimationEffect, animationNode, animationNode- >isKeyframeEffect(), animationNode.isKeyframeEffect()); 121 DEFINE_TYPE_CASTS(KeyframeEffect, AnimationEffect, animationNode, animationNode- >isKeyframeEffect(), animationNode.isKeyframeEffect());
122 122
123 } // namespace blink 123 } // namespace blink
124 124
125 #endif // KeyframeEffect_h 125 #endif // KeyframeEffect_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698