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

Side by Side Diff: src/animator/SkPaintPart.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/SkMemberInfo.h ('k') | src/animator/SkPathParts.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 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkPaintPart_DEFINED 8 #ifndef SkPaintPart_DEFINED
9 #define SkPaintPart_DEFINED 9 #define SkPaintPart_DEFINED
10 10
(...skipping 17 matching lines...) Expand all
28 virtual bool isPaintPart() const { return true; } 28 virtual bool isPaintPart() const { return true; }
29 #endif 29 #endif
30 protected: 30 protected:
31 SkDrawPaint* fPaint; 31 SkDrawPaint* fPaint;
32 }; 32 };
33 33
34 class SkDrawMaskFilter : public SkPaintPart { 34 class SkDrawMaskFilter : public SkPaintPart {
35 DECLARE_EMPTY_MEMBER_INFO(MaskFilter); 35 DECLARE_EMPTY_MEMBER_INFO(MaskFilter);
36 virtual SkMaskFilter* getMaskFilter(); 36 virtual SkMaskFilter* getMaskFilter();
37 protected: 37 protected:
38 virtual bool add() SK_OVERRIDE; 38 bool add() SK_OVERRIDE;
39 }; 39 };
40 40
41 class SkDrawPathEffect : public SkPaintPart { 41 class SkDrawPathEffect : public SkPaintPart {
42 DECLARE_EMPTY_MEMBER_INFO(PathEffect); 42 DECLARE_EMPTY_MEMBER_INFO(PathEffect);
43 virtual SkPathEffect* getPathEffect(); 43 virtual SkPathEffect* getPathEffect();
44 protected: 44 protected:
45 virtual bool add() SK_OVERRIDE; 45 bool add() SK_OVERRIDE;
46 }; 46 };
47 47
48 class SkDrawShader : public SkPaintPart { 48 class SkDrawShader : public SkPaintPart {
49 DECLARE_DRAW_MEMBER_INFO(Shader); 49 DECLARE_DRAW_MEMBER_INFO(Shader);
50 SkDrawShader(); 50 SkDrawShader();
51 virtual SkShader* getShader(); 51 virtual SkShader* getShader();
52 protected: 52 protected:
53 virtual bool add() SK_OVERRIDE; 53 bool add() SK_OVERRIDE;
54 SkMatrix* getMatrix(); // returns NULL if matrix is NULL 54 SkMatrix* getMatrix(); // returns NULL if matrix is NULL
55 SkDrawMatrix* matrix; 55 SkDrawMatrix* matrix;
56 int /*SkShader::TileMode*/ tileMode; 56 int /*SkShader::TileMode*/ tileMode;
57 }; 57 };
58 58
59 class SkDrawTypeface : public SkPaintPart { 59 class SkDrawTypeface : public SkPaintPart {
60 DECLARE_DRAW_MEMBER_INFO(Typeface); 60 DECLARE_DRAW_MEMBER_INFO(Typeface);
61 SkDrawTypeface(); 61 SkDrawTypeface();
62 #ifdef SK_DUMP_ENABLED 62 #ifdef SK_DUMP_ENABLED
63 virtual void dump(SkAnimateMaker *) SK_OVERRIDE; 63 void dump(SkAnimateMaker *) SK_OVERRIDE;
64 #endif 64 #endif
65 SkTypeface* getTypeface() { 65 SkTypeface* getTypeface() {
66 return SkTypeface::CreateFromName(fontName.c_str(), style); } 66 return SkTypeface::CreateFromName(fontName.c_str(), style); }
67 protected: 67 protected:
68 virtual bool add() SK_OVERRIDE; 68 bool add() SK_OVERRIDE;
69 SkString fontName; 69 SkString fontName;
70 SkTypeface::Style style; 70 SkTypeface::Style style;
71 }; 71 };
72 72
73 #endif // SkPaintPart_DEFINED 73 #endif // SkPaintPart_DEFINED
OLDNEW
« no previous file with comments | « src/animator/SkMemberInfo.h ('k') | src/animator/SkPathParts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698