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

Side by Side Diff: cc/CCActiveAnimation.h

Issue 10985088: cc: Switch it to use DISALLOW_COPY_AND_ASSIGN macro from base/ library. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/CCDebugRectHistory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/basictypes.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 cc { 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);
21 public: 20 public:
22 // Animations begin in one of the 'waiting' states. Animations waiting for t he next tick 21 // Animations begin in one of the 'waiting' states. Animations waiting for t he next tick
23 // will start the next time the controller animates. Animations waiting for target 22 // will start the next time the controller animates. Animations waiting for target
24 // availibility will run as soon as their target property is free (and all t he animations 23 // availibility will run as soon as their target property is free (and all t he animations
25 // animating with it are also able to run). Animations waiting for their sta rt time to 24 // animating with it are also able to run). Animations waiting for their sta rt time to
26 // come have be scheduled to run at a particular point in time. When this ti me arrives, 25 // come have be scheduled to run at a particular point in time. When this ti me arrives,
27 // the controller will move the animations into the Running state. Running a nimations 26 // the controller will move the animations into the Running state. Running a nimations
28 // may toggle between Running and Paused, and may be stopped by moving into either the 27 // may toggle between Running and Paused, and may be stopped by moving into either the
29 // Aborted or Finished states. A Finished animation was allowed to run to co mpletion, but 28 // Aborted or Finished states. A Finished animation was allowed to run to co mpletion, but
30 // an Aborted animation was not. 29 // an Aborted animation was not.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 double m_totalPausedTime; 146 double m_totalPausedTime;
148 147
149 // Animations lead dual lives. An active animation will be conceptually owne d by 148 // 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 149 // 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 150 // 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 151 // 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 152 // 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 153 // that ultimately controls the values of the animating layer and so we will refer
155 // to it as the 'controlling instance'. 154 // to it as the 'controlling instance'.
156 bool m_isControllingInstance; 155 bool m_isControllingInstance;
156
157 DISALLOW_COPY_AND_ASSIGN(CCActiveAnimation);
157 }; 158 };
158 159
159 } // namespace cc 160 } // namespace cc
160 161
161 #endif // CCActiveAnimation_h 162 #endif // CCActiveAnimation_h
OLDNEW
« no previous file with comments | « no previous file | cc/CCDebugRectHistory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698