OLD | NEW |
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 kSkDrawable_Type, | 74 kSkDrawable_Type, |
75 kSkDrawLooper_Type, | 75 kSkDrawLooper_Type, |
76 kSkImageFilter_Type, | 76 kSkImageFilter_Type, |
77 kSkMaskFilter_Type, | 77 kSkMaskFilter_Type, |
78 kSkPathEffect_Type, | 78 kSkPathEffect_Type, |
79 kSkPixelRef_Type, | 79 kSkPixelRef_Type, |
80 kSkRasterizer_Type, | 80 kSkRasterizer_Type, |
81 kSkShader_Type, | 81 kSkShader_Type, |
82 kSkUnused_Type, // used to be SkUnitMapper | 82 kSkUnused_Type, // used to be SkUnitMapper |
83 kSkXfermode_Type, | 83 kSkXfermode_Type, |
84 kNormalSource_Type, | |
85 }; | 84 }; |
86 | 85 |
87 typedef sk_sp<SkFlattenable> (*Factory)(SkReadBuffer&); | 86 typedef sk_sp<SkFlattenable> (*Factory)(SkReadBuffer&); |
88 | 87 |
89 SkFlattenable() {} | 88 SkFlattenable() {} |
90 | 89 |
91 /** Implement this to return a factory function pointer that can be called | 90 /** Implement this to return a factory function pointer that can be called |
92 to recreate your class given a buffer (previously written to by your | 91 to recreate your class given a buffer (previously written to by your |
93 override of flatten(). | 92 override of flatten(). |
94 */ | 93 */ |
(...skipping 30 matching lines...) Expand all Loading... |
125 | 124 |
126 private: | 125 private: |
127 static void InitializeFlattenablesIfNeeded(); | 126 static void InitializeFlattenablesIfNeeded(); |
128 | 127 |
129 friend class SkGraphics; | 128 friend class SkGraphics; |
130 | 129 |
131 typedef SkRefCnt INHERITED; | 130 typedef SkRefCnt INHERITED; |
132 }; | 131 }; |
133 | 132 |
134 #endif | 133 #endif |
OLD | NEW |