| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CCActiveAnimation_h | 5 #ifndef CCActiveAnimation_h |
| 6 #define CCActiveAnimation_h | 6 #define CCActiveAnimation_h |
| 7 | 7 |
| 8 #include <wtf/Noncopyable.h> | 8 #include <wtf/Noncopyable.h> |
| 9 #include <wtf/OwnPtr.h> | 9 #include <wtf/OwnPtr.h> |
| 10 #include <wtf/PassOwnPtr.h> | 10 #include <wtf/PassOwnPtr.h> |
| 11 | 11 |
| 12 namespace WebCore { | 12 namespace cc { |
| 13 | 13 |
| 14 class CCAnimationCurve; | 14 class CCAnimationCurve; |
| 15 | 15 |
| 16 // A CCActiveAnimation, contains all the state required to play a CCAnimationCur
ve. | 16 // A CCActiveAnimation, contains all the state required to play a CCAnimationCur
ve. |
| 17 // Specifically, the affected property, the run state (paused, finished, etc.), | 17 // Specifically, the affected property, the run state (paused, finished, etc.), |
| 18 // loop count, last pause time, and the total time spent paused. | 18 // loop count, last pause time, and the total time spent paused. |
| 19 class CCActiveAnimation { | 19 class CCActiveAnimation { |
| 20 WTF_MAKE_NONCOPYABLE(CCActiveAnimation); | 20 WTF_MAKE_NONCOPYABLE(CCActiveAnimation); |
| 21 public: | 21 public: |
| 22 // Animations begin in one of the 'waiting' states. Animations waiting for t
he next tick | 22 // Animations begin in one of the 'waiting' states. Animations waiting for t
he next tick |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 // Animations lead dual lives. An active animation will be conceptually owne
d by | 149 // Animations lead dual lives. An active animation will be conceptually owne
d by |
| 150 // two controllers, one on the impl thread and one on the main. In reality,
there | 150 // two controllers, one on the impl thread and one on the main. In reality,
there |
| 151 // will be two separate CCActiveAnimation instances for the same animation.
They | 151 // will be two separate CCActiveAnimation instances for the same animation.
They |
| 152 // will have the same group id and the same target property (these two value
s | 152 // will have the same group id and the same target property (these two value
s |
| 153 // uniquely identify an animation). The instance on the impl thread is the i
nstance | 153 // uniquely identify an animation). The instance on the impl thread is the i
nstance |
| 154 // that ultimately controls the values of the animating layer and so we will
refer | 154 // that ultimately controls the values of the animating layer and so we will
refer |
| 155 // to it as the 'controlling instance'. | 155 // to it as the 'controlling instance'. |
| 156 bool m_isControllingInstance; | 156 bool m_isControllingInstance; |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 } // namespace WebCore | 159 } // namespace cc |
| 160 | 160 |
| 161 #endif // CCActiveAnimation_h | 161 #endif // CCActiveAnimation_h |
| OLD | NEW |