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 SkColorFilter_DEFINED | 8 #ifndef SkColorFilter_DEFINED |
9 #define SkColorFilter_DEFINED | 9 #define SkColorFilter_DEFINED |
10 | 10 |
11 #include "SkColor.h" | 11 #include "SkColor.h" |
12 #include "SkFlattenable.h" | 12 #include "SkFlattenable.h" |
13 #include "SkTDArray.h" | 13 #include "SkTDArray.h" |
14 #include "SkXfermode.h" | 14 #include "SkXfermode.h" |
15 | 15 |
| 16 class SkBitmap; |
| 17 class GrProcessor; |
16 class GrContext; | 18 class GrContext; |
17 class GrFragmentProcessor; | |
18 class GrProcessorDataManager; | 19 class GrProcessorDataManager; |
19 class SkBitmap; | |
20 | 20 |
21 /** | 21 /** |
22 * ColorFilters are optional objects in the drawing pipeline. When present in | 22 * ColorFilters are optional objects in the drawing pipeline. When present in |
23 * a paint, they are called with the "src" colors, and return new colors, which | 23 * a paint, they are called with the "src" colors, and return new colors, which |
24 * are then passed onto the next stage (either ImageFilter or Xfermode). | 24 * are then passed onto the next stage (either ImageFilter or Xfermode). |
25 * | 25 * |
26 * All subclasses are required to be reentrant-safe : it must be legal to share | 26 * All subclasses are required to be reentrant-safe : it must be legal to share |
27 * the same instance between several threads. | 27 * the same instance between several threads. |
28 */ | 28 */ |
29 class SK_API SkColorFilter : public SkFlattenable { | 29 class SK_API SkColorFilter : public SkFlattenable { |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 * | 156 * |
157 * e.g. compose(filter, compose(compose(filter, filter), filter)) --> 4 | 157 * e.g. compose(filter, compose(compose(filter, filter), filter)) --> 4 |
158 */ | 158 */ |
159 virtual int privateComposedFilterCount() const { return 1; } | 159 virtual int privateComposedFilterCount() const { return 1; } |
160 friend class SkComposeColorFilter; | 160 friend class SkComposeColorFilter; |
161 | 161 |
162 typedef SkFlattenable INHERITED; | 162 typedef SkFlattenable INHERITED; |
163 }; | 163 }; |
164 | 164 |
165 #endif | 165 #endif |
OLD | NEW |