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

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

Issue 806653007: Fix up all the easy virtual ... SK_OVERRIDE cases. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 11 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
« no previous file with comments | « src/animator/SkDisplayAdd.h ('k') | src/animator/SkDisplayBounds.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 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 SkDisplayApply_DEFINED 10 #ifndef SkDisplayApply_DEFINED
(...skipping 20 matching lines...) Expand all
31 enum Mode { 31 enum Mode {
32 kMode_create, 32 kMode_create,
33 kMode_immediate, 33 kMode_immediate,
34 //kMode_once 34 //kMode_once
35 }; 35 };
36 void activate(SkAnimateMaker& ); 36 void activate(SkAnimateMaker& );
37 void append(SkApply* apply); 37 void append(SkApply* apply);
38 void appendActive(SkActive* ); 38 void appendActive(SkActive* );
39 void applyValues(int animatorIndex, SkOperand* values, int count, 39 void applyValues(int animatorIndex, SkOperand* values, int count,
40 SkDisplayTypes , SkMSec time); 40 SkDisplayTypes , SkMSec time);
41 virtual bool contains(SkDisplayable*) SK_OVERRIDE; 41 bool contains(SkDisplayable*) SK_OVERRIDE;
42 // void createActive(SkAnimateMaker& ); 42 // void createActive(SkAnimateMaker& );
43 virtual SkDisplayable* deepCopy(SkAnimateMaker* ) SK_OVERRIDE; 43 SkDisplayable* deepCopy(SkAnimateMaker* ) SK_OVERRIDE;
44 void disable(); 44 void disable();
45 virtual bool draw(SkAnimateMaker& ) SK_OVERRIDE; 45 bool draw(SkAnimateMaker& ) SK_OVERRIDE;
46 #ifdef SK_DUMP_ENABLED 46 #ifdef SK_DUMP_ENABLED
47 virtual void dump(SkAnimateMaker* ) SK_OVERRIDE; 47 void dump(SkAnimateMaker* ) SK_OVERRIDE;
48 #endif 48 #endif
49 virtual bool enable(SkAnimateMaker& ) SK_OVERRIDE; 49 bool enable(SkAnimateMaker& ) SK_OVERRIDE;
50 void enableCreate(SkAnimateMaker& ); 50 void enableCreate(SkAnimateMaker& );
51 void enableDynamic(SkAnimateMaker& ); 51 void enableDynamic(SkAnimateMaker& );
52 void endSave(int index); 52 void endSave(int index);
53 Mode getMode() { return mode; } 53 Mode getMode() { return mode; }
54 virtual bool getProperty(int index, SkScriptValue* value) const SK_OVERRIDE; 54 bool getProperty(int index, SkScriptValue* value) const SK_OVERRIDE;
55 SkADrawable* getScope() { return scope; } 55 SkADrawable* getScope() { return scope; }
56 void getStep(SkScriptValue* ); 56 void getStep(SkScriptValue* );
57 SkADrawable* getTarget(SkAnimateBase* ); 57 SkADrawable* getTarget(SkAnimateBase* );
58 bool hasDelayedAnimator() const; 58 bool hasDelayedAnimator() const;
59 virtual bool hasEnable() const SK_OVERRIDE; 59 bool hasEnable() const SK_OVERRIDE;
60 bool inactivate(SkAnimateMaker& maker); 60 bool inactivate(SkAnimateMaker& maker);
61 virtual void initialize() SK_OVERRIDE; 61 void initialize() SK_OVERRIDE;
62 bool interpolate(SkAnimateMaker& , SkMSec time); 62 bool interpolate(SkAnimateMaker& , SkMSec time);
63 virtual void onEndElement(SkAnimateMaker& ) SK_OVERRIDE; 63 void onEndElement(SkAnimateMaker& ) SK_OVERRIDE;
64 virtual const SkMemberInfo* preferredChild(SkDisplayTypes type) SK_OVERRIDE; 64 const SkMemberInfo* preferredChild(SkDisplayTypes type) SK_OVERRIDE;
65 void refresh(SkAnimateMaker& ); 65 void refresh(SkAnimateMaker& );
66 void reset(); 66 void reset();
67 virtual bool resolveIDs(SkAnimateMaker& maker, SkDisplayable* original, SkAp ply* ) SK_OVERRIDE; 67 bool resolveIDs(SkAnimateMaker& maker, SkDisplayable* original, SkApply* ) S K_OVERRIDE;
68 bool resolveField(SkAnimateMaker& , SkDisplayable* parent, SkString* str); 68 bool resolveField(SkAnimateMaker& , SkDisplayable* parent, SkString* str);
69 void save(int index); 69 void save(int index);
70 void setEmbedded() { fEmbedded = true; } 70 void setEmbedded() { fEmbedded = true; }
71 virtual bool setProperty(int index, SkScriptValue& ) SK_OVERRIDE; 71 bool setProperty(int index, SkScriptValue& ) SK_OVERRIDE;
72 virtual void setSteps(int _steps) SK_OVERRIDE; 72 void setSteps(int _steps) SK_OVERRIDE;
73 // virtual void setTime(SkMSec time); 73 // virtual void setTime(SkMSec time);
74 #ifdef SK_DEBUG 74 #ifdef SK_DEBUG
75 virtual void validate() SK_OVERRIDE; 75 void validate() SK_OVERRIDE;
76 #endif 76 #endif
77 private: 77 private:
78 SkMSec begin; 78 SkMSec begin;
79 SkBool dontDraw; 79 SkBool dontDraw;
80 SkString dynamicScope; 80 SkString dynamicScope;
81 SkMSec interval; 81 SkMSec interval;
82 Mode mode; 82 Mode mode;
83 #if 0 83 #if 0
84 SkBool pickup; 84 SkBool pickup;
85 #endif 85 #endif
(...skipping 11 matching lines...) Expand all
97 SkBool fDeleteScope : 1; 97 SkBool fDeleteScope : 1;
98 SkBool fEmbedded : 1; 98 SkBool fEmbedded : 1;
99 SkBool fEnabled : 1; 99 SkBool fEnabled : 1;
100 SkBool fEnabling : 1; // set if calling interpolate from enable 100 SkBool fEnabling : 1; // set if calling interpolate from enable
101 friend class SkActive; 101 friend class SkActive;
102 friend class SkDisplayList; 102 friend class SkDisplayList;
103 typedef SkADrawable INHERITED; 103 typedef SkADrawable INHERITED;
104 }; 104 };
105 105
106 #endif // SkDisplayApply_DEFINED 106 #endif // SkDisplayApply_DEFINED
OLDNEW
« no previous file with comments | « src/animator/SkDisplayAdd.h ('k') | src/animator/SkDisplayBounds.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698