| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 /** \class SkFlattenable | 64 /** \class SkFlattenable |
| 65 | 65 |
| 66 SkFlattenable is the base class for objects that need to be flattened | 66 SkFlattenable is the base class for objects that need to be flattened |
| 67 into a data stream for either transport or as part of the key to the | 67 into a data stream for either transport or as part of the key to the |
| 68 font cache. | 68 font cache. |
| 69 */ | 69 */ |
| 70 class SK_API SkFlattenable : public SkRefCnt { | 70 class SK_API SkFlattenable : public SkRefCnt { |
| 71 public: | 71 public: |
| 72 enum Type { | 72 enum Type { |
| 73 kSkColorFilter_Type, | 73 kSkColorFilter_Type, |
| 74 kSkColorSpace_Type, |
| 74 kSkDrawable_Type, | 75 kSkDrawable_Type, |
| 75 kSkDrawLooper_Type, | 76 kSkDrawLooper_Type, |
| 76 kSkImageFilter_Type, | 77 kSkImageFilter_Type, |
| 77 kSkMaskFilter_Type, | 78 kSkMaskFilter_Type, |
| 78 kSkPathEffect_Type, | 79 kSkPathEffect_Type, |
| 79 kSkPixelRef_Type, | 80 kSkPixelRef_Type, |
| 80 kSkRasterizer_Type, | 81 kSkRasterizer_Type, |
| 81 kSkShader_Type, | 82 kSkShader_Type, |
| 82 kSkUnused_Type, // used to be SkUnitMapper | 83 kSkUnused_Type, // used to be SkUnitMapper |
| 83 kSkXfermode_Type, | 84 kSkXfermode_Type, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 126 |
| 126 private: | 127 private: |
| 127 static void InitializeFlattenablesIfNeeded(); | 128 static void InitializeFlattenablesIfNeeded(); |
| 128 | 129 |
| 129 friend class SkGraphics; | 130 friend class SkGraphics; |
| 130 | 131 |
| 131 typedef SkRefCnt INHERITED; | 132 typedef SkRefCnt INHERITED; |
| 132 }; | 133 }; |
| 133 | 134 |
| 134 #endif | 135 #endif |
| OLD | NEW |