| 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 kSkDrawable_Type, |
| 74 kSkDrawLooper_Type, | 75 kSkDrawLooper_Type, |
| 75 kSkImageFilter_Type, | 76 kSkImageFilter_Type, |
| 76 kSkMaskFilter_Type, | 77 kSkMaskFilter_Type, |
| 77 kSkPathEffect_Type, | 78 kSkPathEffect_Type, |
| 78 kSkPixelRef_Type, | 79 kSkPixelRef_Type, |
| 79 kSkRasterizer_Type, | 80 kSkRasterizer_Type, |
| 80 kSkShader_Type, | 81 kSkShader_Type, |
| 81 kSkUnused_Type, // used to be SkUnitMapper | 82 kSkUnused_Type, // used to be SkUnitMapper |
| 82 kSkXfermode_Type, | 83 kSkXfermode_Type, |
| 83 }; | 84 }; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 124 |
| 124 private: | 125 private: |
| 125 static void InitializeFlattenablesIfNeeded(); | 126 static void InitializeFlattenablesIfNeeded(); |
| 126 | 127 |
| 127 friend class SkGraphics; | 128 friend class SkGraphics; |
| 128 | 129 |
| 129 typedef SkRefCnt INHERITED; | 130 typedef SkRefCnt INHERITED; |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 #endif | 133 #endif |
| OLD | NEW |