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

Side by Side Diff: src/animator/SkAnimateActive.h

Issue 764463002: rename SkDrawable to SkADrawable (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkAnimateActive_DEFINED 10 #ifndef SkAnimateActive_DEFINED
11 #define SkAnimateActive_DEFINED 11 #define SkAnimateActive_DEFINED
12 12
13 #include "SkDisplayApply.h" 13 #include "SkDisplayApply.h"
14 #include "SkOperandInterpolator.h" 14 #include "SkOperandInterpolator.h"
15 #include "SkIntArray.h" 15 #include "SkIntArray.h"
16 16
17 class SkAnimateMaker; 17 class SkAnimateMaker;
18 18
19 class SkActive { 19 class SkActive {
20 public: 20 public:
21 SkActive(SkApply& , SkAnimateMaker& ); 21 SkActive(SkApply& , SkAnimateMaker& );
22 ~SkActive(); 22 ~SkActive();
23 void advance(); 23 void advance();
24 void append(SkApply* ); 24 void append(SkApply* );
25 void calcDurations(int index); 25 void calcDurations(int index);
26 void create(SkDrawable* scope, SkMSec time); 26 void create(SkADrawable* scope, SkMSec time);
27 bool draw() { return immediate(false); } 27 bool draw() { return immediate(false); }
28 bool enable() { return immediate(true); } 28 bool enable() { return immediate(true); }
29 void init( ); 29 void init( );
30 SkMSec getTime(SkMSec inTime, int animatorIndex); 30 SkMSec getTime(SkMSec inTime, int animatorIndex);
31 void pickUp(SkActive* existing); 31 void pickUp(SkActive* existing);
32 void reset() { fDrawIndex = 0; } 32 void reset() { fDrawIndex = 0; }
33 void setInterpolator(int index, SkOperand* from); 33 void setInterpolator(int index, SkOperand* from);
34 void start(); 34 void start();
35 #ifdef SK_DEBUG 35 #ifdef SK_DEBUG
36 void validate(); 36 void validate();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 SkTDOperandPtrArray fSaveInterpolators; 70 SkTDOperandPtrArray fSaveInterpolators;
71 SkTDAnimateArray fAnimators; 71 SkTDAnimateArray fAnimators;
72 SkMSec fMaxTime; // greatest of all animation durations; only used by imm ediate mode 72 SkMSec fMaxTime; // greatest of all animation durations; only used by imm ediate mode
73 SkAnimateMaker& fMaker; 73 SkAnimateMaker& fMaker;
74 int fDrawIndex; 74 int fDrawIndex;
75 int fDrawMax; 75 int fDrawMax;
76 friend class SkApply; 76 friend class SkApply;
77 }; 77 };
78 78
79 #endif // SkAnimateActive_DEFINED 79 #endif // SkAnimateActive_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698