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

Side by Side Diff: include/core/SkFlattenable.h

Issue 1217573002: remove SkInstCnt (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 5 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 | « include/core/SkDrawLooper.h ('k') | include/core/SkImage.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 SkFlattenable_DEFINED 8 #ifndef SkFlattenable_DEFINED
9 #define SkFlattenable_DEFINED 9 #define SkFlattenable_DEFINED
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 kSkImageFilter_Type, 73 kSkImageFilter_Type,
74 kSkMaskFilter_Type, 74 kSkMaskFilter_Type,
75 kSkPathEffect_Type, 75 kSkPathEffect_Type,
76 kSkPixelRef_Type, 76 kSkPixelRef_Type,
77 kSkRasterizer_Type, 77 kSkRasterizer_Type,
78 kSkShader_Type, 78 kSkShader_Type,
79 kSkUnused_Type, // used to be SkUnitMapper 79 kSkUnused_Type, // used to be SkUnitMapper
80 kSkXfermode_Type, 80 kSkXfermode_Type,
81 }; 81 };
82 82
83 SK_DECLARE_INST_COUNT(SkFlattenable)
84
85 typedef SkFlattenable* (*Factory)(SkReadBuffer&); 83 typedef SkFlattenable* (*Factory)(SkReadBuffer&);
86 84
87 SkFlattenable() {} 85 SkFlattenable() {}
88 86
89 /** Implement this to return a factory function pointer that can be called 87 /** Implement this to return a factory function pointer that can be called
90 to recreate your class given a buffer (previously written to by your 88 to recreate your class given a buffer (previously written to by your
91 override of flatten(). 89 override of flatten().
92 */ 90 */
93 virtual Factory getFactory() const = 0; 91 virtual Factory getFactory() const = 0;
94 92
(...skipping 22 matching lines...) Expand all
117 115
118 private: 116 private:
119 static void InitializeFlattenablesIfNeeded(); 117 static void InitializeFlattenablesIfNeeded();
120 118
121 friend class SkGraphics; 119 friend class SkGraphics;
122 120
123 typedef SkRefCnt INHERITED; 121 typedef SkRefCnt INHERITED;
124 }; 122 };
125 123
126 #endif 124 #endif
OLDNEW
« no previous file with comments | « include/core/SkDrawLooper.h ('k') | include/core/SkImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698