OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
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 SkLumaColorFilter_DEFINED | 8 #ifndef SkLumaColorFilter_DEFINED |
9 #define SkLumaColorFilter_DEFINED | 9 #define SkLumaColorFilter_DEFINED |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 virtual void filterSpan(const SkPMColor src[], int count, SkPMColor[]) const
SK_OVERRIDE; | 28 virtual void filterSpan(const SkPMColor src[], int count, SkPMColor[]) const
SK_OVERRIDE; |
29 | 29 |
30 #if SK_SUPPORT_GPU | 30 #if SK_SUPPORT_GPU |
31 virtual GrFragmentProcessor* asFragmentProcessor(GrContext*) const SK_OVERRI
DE; | 31 virtual GrFragmentProcessor* asFragmentProcessor(GrContext*) const SK_OVERRI
DE; |
32 #endif | 32 #endif |
33 | 33 |
34 SK_TO_STRING_OVERRIDE() | 34 SK_TO_STRING_OVERRIDE() |
35 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkLumaColorFilter) | 35 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkLumaColorFilter) |
36 | 36 |
37 protected: | 37 protected: |
| 38 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
| 39 SkLumaColorFilter(SkReadBuffer& buffer); |
| 40 #endif |
38 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 41 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
39 | 42 |
40 private: | 43 private: |
41 SkLumaColorFilter(); | 44 SkLumaColorFilter(); |
42 | 45 |
43 typedef SkColorFilter INHERITED; | 46 typedef SkColorFilter INHERITED; |
44 }; | 47 }; |
45 | 48 |
46 #endif | 49 #endif |
OLD | NEW |