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

Side by Side Diff: Source/core/animation/Animation.h

Issue 946323002: Animations: Introduce compositor AnimationPlayer and AnimationTimeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Format. Created 5 years, 8 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 bool isCandidateForAnimationOnCompositor(double playerPlaybackRate) const; 75 bool isCandidateForAnimationOnCompositor(double playerPlaybackRate) const;
76 // Must only be called once. 76 // Must only be called once.
77 bool maybeStartAnimationOnCompositor(int group, double startTime, double tim eOffset, double playerPlaybackRate); 77 bool maybeStartAnimationOnCompositor(int group, double startTime, double tim eOffset, double playerPlaybackRate);
78 bool hasActiveAnimationsOnCompositor() const; 78 bool hasActiveAnimationsOnCompositor() const;
79 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; 79 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const;
80 bool cancelAnimationOnCompositor(); 80 bool cancelAnimationOnCompositor();
81 void restartAnimationOnCompositor(); 81 void restartAnimationOnCompositor();
82 void cancelIncompatibleAnimationsOnCompositor(); 82 void cancelIncompatibleAnimationsOnCompositor();
83 void pauseAnimationForTestingOnCompositor(double pauseTime); 83 void pauseAnimationForTestingOnCompositor(double pauseTime);
84 84
85 bool canAttachCompositedLayers() const;
86 void attachCompositedLayers();
87
85 void setCompositorAnimationIdsForTesting(const Vector<int>& compositorAnimat ionIds) { m_compositorAnimationIds = compositorAnimationIds; } 88 void setCompositorAnimationIdsForTesting(const Vector<int>& compositorAnimat ionIds) { m_compositorAnimationIds = compositorAnimationIds; }
86 89
87 DECLARE_VIRTUAL_TRACE(); 90 DECLARE_VIRTUAL_TRACE();
88 91
89 void downgradeToNormalAnimation() { m_priority = DefaultPriority; } 92 void downgradeToNormalAnimation() { m_priority = DefaultPriority; }
90 93
91 protected: 94 protected:
92 void applyEffects(); 95 void applyEffects();
93 void clearEffects(); 96 void clearEffects();
94 virtual void updateChildrenAndEffects() const override; 97 virtual void updateChildrenAndEffects() const override;
(...skipping 14 matching lines...) Expand all
109 Vector<int> m_compositorAnimationIds; 112 Vector<int> m_compositorAnimationIds;
110 113
111 friend class AnimationAnimationV8Test; 114 friend class AnimationAnimationV8Test;
112 }; 115 };
113 116
114 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim ation(), animationNode.isAnimation()); 117 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim ation(), animationNode.isAnimation());
115 118
116 } // namespace blink 119 } // namespace blink
117 120
118 #endif // Animation_h 121 #endif // Animation_h
OLDNEW
« no previous file with comments | « ManualTests/animation/compositor-animation-style-change.html ('k') | Source/core/animation/Animation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698