OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 SkImageFilter_DEFINED | 8 #ifndef SkImageFilter_DEFINED |
9 #define SkImageFilter_DEFINED | 9 #define SkImageFilter_DEFINED |
10 | 10 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 explicit SkImageFilter(SkFlattenableReadBuffer& rb); | 152 explicit SkImageFilter(SkFlattenableReadBuffer& rb); |
153 | 153 |
154 virtual void flatten(SkFlattenableWriteBuffer& wb) const SK_OVERRIDE; | 154 virtual void flatten(SkFlattenableWriteBuffer& wb) const SK_OVERRIDE; |
155 | 155 |
156 // Default impl returns false | 156 // Default impl returns false |
157 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, | 157 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, |
158 SkBitmap* result, SkIPoint* offset); | 158 SkBitmap* result, SkIPoint* offset); |
159 // Default impl copies src into dst and returns true | 159 // Default impl copies src into dst and returns true |
160 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*); | 160 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*); |
161 | 161 |
162 // Return the result of processing the given input, or the source bitmap | |
163 // if we have no connected input at that index. | |
164 SkBitmap getInputResult(int index, Proxy*, const SkBitmap& src, const SkMatr
ix&, | |
165 SkIPoint*); | |
166 | |
167 private: | 162 private: |
168 typedef SkFlattenable INHERITED; | 163 typedef SkFlattenable INHERITED; |
169 int fInputCount; | 164 int fInputCount; |
170 SkImageFilter** fInputs; | 165 SkImageFilter** fInputs; |
171 }; | 166 }; |
172 | 167 |
173 #endif | 168 #endif |
OLD | NEW |