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" | |
14 #include "SkXfermode.h" | 13 #include "SkXfermode.h" |
15 | 14 |
16 class GrContext; | 15 class GrContext; |
17 class GrFragmentProcessor; | 16 class GrFragmentProcessor; |
18 class SkBitmap; | 17 class SkBitmap; |
19 | 18 |
20 /** | 19 /** |
21 * ColorFilters are optional objects in the drawing pipeline. When present in | 20 * ColorFilters are optional objects in the drawing pipeline. When present in |
22 * a paint, they are called with the "src" colors, and return new colors, which | 21 * a paint, they are called with the "src" colors, and return new colors, which |
23 * are then passed onto the next stage (either ImageFilter or Xfermode). | 22 * are then passed onto the next stage (either ImageFilter or Xfermode). |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 * | 164 * |
166 * e.g. compose(filter, compose(compose(filter, filter), filter)) --> 4 | 165 * e.g. compose(filter, compose(compose(filter, filter), filter)) --> 4 |
167 */ | 166 */ |
168 virtual int privateComposedFilterCount() const { return 1; } | 167 virtual int privateComposedFilterCount() const { return 1; } |
169 friend class SkComposeColorFilter; | 168 friend class SkComposeColorFilter; |
170 | 169 |
171 typedef SkFlattenable INHERITED; | 170 typedef SkFlattenable INHERITED; |
172 }; | 171 }; |
173 | 172 |
174 #endif | 173 #endif |
OLD | NEW |