OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The Android Open Source Project | 2 * Copyright 2012 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 SkColorFilterImageFilter_DEFINED | 8 #ifndef SkColorFilterImageFilter_DEFINED |
9 #define SkColorFilterImageFilter_DEFINED | 9 #define SkColorFilterImageFilter_DEFINED |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 void flatten(SkWriteBuffer&) const override; | 24 void flatten(SkWriteBuffer&) const override; |
25 bool onFilterImageDeprecated(Proxy*, const SkBitmap& src, const Context&, Sk
Bitmap* result, | 25 bool onFilterImageDeprecated(Proxy*, const SkBitmap& src, const Context&, Sk
Bitmap* result, |
26 SkIPoint* loc) const override; | 26 SkIPoint* loc) const override; |
27 bool onIsColorFilterNode(SkColorFilter**) const override; | 27 bool onIsColorFilterNode(SkColorFilter**) const override; |
28 bool canComputeFastBounds() const override; | 28 bool canComputeFastBounds() const override; |
29 | 29 |
30 private: | 30 private: |
31 SkColorFilterImageFilter(SkColorFilter* cf, | 31 SkColorFilterImageFilter(SkColorFilter* cf, |
32 SkImageFilter* input, | 32 SkImageFilter* input, |
33 const CropRect* cropRect); | 33 const CropRect* cropRect); |
34 virtual ~SkColorFilterImageFilter(); | |
35 | 34 |
36 SkColorFilter* fColorFilter; | 35 sk_sp<SkColorFilter> fColorFilter; |
37 | 36 |
38 typedef SkImageFilter INHERITED; | 37 typedef SkImageFilter INHERITED; |
39 }; | 38 }; |
40 | 39 |
41 #endif | 40 #endif |
OLD | NEW |