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 SkColorFilter_DEFINED | 10 #ifndef SkColorFilter_DEFINED |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 */ | 128 */ |
129 virtual GrFragmentProcessor* asFragmentProcessor(GrContext*) const; | 129 virtual GrFragmentProcessor* asFragmentProcessor(GrContext*) const; |
130 | 130 |
131 SK_TO_STRING_PUREVIRT() | 131 SK_TO_STRING_PUREVIRT() |
132 | 132 |
133 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() | 133 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() |
134 SK_DEFINE_FLATTENABLE_TYPE(SkColorFilter) | 134 SK_DEFINE_FLATTENABLE_TYPE(SkColorFilter) |
135 | 135 |
136 protected: | 136 protected: |
137 SkColorFilter() {} | 137 SkColorFilter() {} |
| 138 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
| 139 SkColorFilter(SkReadBuffer& rb) : INHERITED(rb) {} |
| 140 #endif |
138 | 141 |
139 private: | 142 private: |
140 typedef SkFlattenable INHERITED; | 143 typedef SkFlattenable INHERITED; |
141 }; | 144 }; |
142 | 145 |
143 #endif | 146 #endif |
OLD | NEW |