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 SkDropShadowImageFilter_DEFINED | 8 #ifndef SkDropShadowImageFilter_DEFINED |
9 #define SkDropShadowImageFilter_DEFINED | 9 #define SkDropShadowImageFilter_DEFINED |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 return new SkDropShadowImageFilter(dx, dy, sigmaX, sigmaY, color, shadow
Mode, input, | 29 return new SkDropShadowImageFilter(dx, dy, sigmaX, sigmaY, color, shadow
Mode, input, |
30 cropRect); | 30 cropRect); |
31 } | 31 } |
32 | 32 |
33 SkRect computeFastBounds(const SkRect&) const override; | 33 SkRect computeFastBounds(const SkRect&) const override; |
34 SK_TO_STRING_OVERRIDE() | 34 SK_TO_STRING_OVERRIDE() |
35 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter) | 35 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter) |
36 | 36 |
37 protected: | 37 protected: |
38 void flatten(SkWriteBuffer&) const override; | 38 void flatten(SkWriteBuffer&) const override; |
39 SkSpecialImage* onFilterImage(SkSpecialImage* source, const Context&, | 39 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&, |
40 SkIPoint* offset) const override; | 40 SkIPoint* offset) const override; |
41 SkIRect onFilterNodeBounds(const SkIRect& src, const SkMatrix&, MapDirection
) const override; | 41 SkIRect onFilterNodeBounds(const SkIRect& src, const SkMatrix&, MapDirection
) const override; |
42 | 42 |
43 private: | 43 private: |
44 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar
sigmaY, SkColor, | 44 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar
sigmaY, SkColor, |
45 ShadowMode shadowMode, SkImageFilter* input, const C
ropRect* cropRect); | 45 ShadowMode shadowMode, SkImageFilter* input, const C
ropRect* cropRect); |
46 | 46 |
47 SkScalar fDx, fDy, fSigmaX, fSigmaY; | 47 SkScalar fDx, fDy, fSigmaX, fSigmaY; |
48 SkColor fColor; | 48 SkColor fColor; |
49 ShadowMode fShadowMode; | 49 ShadowMode fShadowMode; |
50 | 50 |
51 typedef SkImageFilter INHERITED; | 51 typedef SkImageFilter INHERITED; |
52 }; | 52 }; |
53 | 53 |
54 #endif | 54 #endif |
OLD | NEW |