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

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

Issue 2049063002: Revert of Use element id's for animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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 void attachCompositedLayers(); 88 void attachCompositedLayers();
88 89
89 void setCompositorAnimationIdsForTesting(const Vector<int>& compositorAnimat ionIds) { m_compositorAnimationIds = compositorAnimationIds; } 90 void setCompositorAnimationIdsForTesting(const Vector<int>& compositorAnimat ionIds) { m_compositorAnimationIds = compositorAnimationIds; }
90 91
91 DECLARE_VIRTUAL_TRACE(); 92 DECLARE_VIRTUAL_TRACE();
92 93
93 void downgradeToNormal() { m_priority = DefaultPriority; } 94 void downgradeToNormal() { m_priority = DefaultPriority; }
94 95
95 protected: 96 protected:
96 void applyEffects(); 97 void applyEffects();
(...skipping 18 matching lines...) Expand all
115 Vector<int> m_compositorAnimationIds; 116 Vector<int> m_compositorAnimationIds;
116 117
117 friend class AnimationAnimationV8Test; 118 friend class AnimationAnimationV8Test;
118 }; 119 };
119 120
120 DEFINE_TYPE_CASTS(KeyframeEffect, AnimationEffect, animationNode, animationNode- >isKeyframeEffect(), animationNode.isKeyframeEffect()); 121 DEFINE_TYPE_CASTS(KeyframeEffect, AnimationEffect, animationNode, animationNode- >isKeyframeEffect(), animationNode.isKeyframeEffect());
121 122
122 } // namespace blink 123 } // namespace blink
123 124
124 #endif // KeyframeEffect_h 125 #endif // KeyframeEffect_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698