| OLD | NEW |
| 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 SkFlattenable_DEFINED | 10 #ifndef SkFlattenable_DEFINED |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 public: | 54 public: |
| 55 enum Type { | 55 enum Type { |
| 56 kSkColorFilter_Type, | 56 kSkColorFilter_Type, |
| 57 kSkDrawLooper_Type, | 57 kSkDrawLooper_Type, |
| 58 kSkImageFilter_Type, | 58 kSkImageFilter_Type, |
| 59 kSkMaskFilter_Type, | 59 kSkMaskFilter_Type, |
| 60 kSkPathEffect_Type, | 60 kSkPathEffect_Type, |
| 61 kSkPixelRef_Type, | 61 kSkPixelRef_Type, |
| 62 kSkRasterizer_Type, | 62 kSkRasterizer_Type, |
| 63 kSkShader_Type, | 63 kSkShader_Type, |
| 64 kSkUnitMapper_Type, | 64 kSkUnused_Type, // used to be SkUnitMapper |
| 65 kSkXfermode_Type, | 65 kSkXfermode_Type, |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 SK_DECLARE_INST_COUNT(SkFlattenable) | 68 SK_DECLARE_INST_COUNT(SkFlattenable) |
| 69 | 69 |
| 70 typedef SkFlattenable* (*Factory)(SkReadBuffer&); | 70 typedef SkFlattenable* (*Factory)(SkReadBuffer&); |
| 71 | 71 |
| 72 SkFlattenable() {} | 72 SkFlattenable() {} |
| 73 | 73 |
| 74 /** Implement this to return a factory function pointer that can be called | 74 /** Implement this to return a factory function pointer that can be called |
| (...skipping 30 matching lines...) Expand all Loading... |
| 105 | 105 |
| 106 private: | 106 private: |
| 107 static void InitializeFlattenablesIfNeeded(); | 107 static void InitializeFlattenablesIfNeeded(); |
| 108 | 108 |
| 109 friend class SkGraphics; | 109 friend class SkGraphics; |
| 110 | 110 |
| 111 typedef SkRefCnt INHERITED; | 111 typedef SkRefCnt INHERITED; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 #endif | 114 #endif |
| OLD | NEW |