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 #include "SkColor.h" | 8 #include "SkColor.h" |
9 #include "SkImageFilter.h" | 9 #include "SkImageFilter.h" |
10 #include "SkScalar.h" | 10 #include "SkScalar.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 shadowMode, NULL, NULL, 0)); | 44 shadowMode, NULL, NULL, 0)); |
45 } | 45 } |
46 | 46 |
47 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; | 47 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; |
48 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter) | 48 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter) |
49 | 49 |
50 protected: | 50 protected: |
51 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar
sigmaY, SkColor, | 51 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar
sigmaY, SkColor, |
52 ShadowMode shadowMode, SkImageFilter* input, const C
ropRect* cropRect, | 52 ShadowMode shadowMode, SkImageFilter* input, const C
ropRect* cropRect, |
53 uint32_t uniqueID); | 53 uint32_t uniqueID); |
54 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING | |
55 explicit SkDropShadowImageFilter(SkReadBuffer&); | |
56 #endif | |
57 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 54 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
58 virtual bool onFilterImage(Proxy*, const SkBitmap& source, const Context&, S
kBitmap* result, SkIPoint* loc) const SK_OVERRIDE; | 55 virtual bool onFilterImage(Proxy*, const SkBitmap& source, const Context&, S
kBitmap* result, SkIPoint* loc) const SK_OVERRIDE; |
59 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, | 56 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, |
60 SkIRect* dst) const SK_OVERRIDE; | 57 SkIRect* dst) const SK_OVERRIDE; |
61 | 58 |
62 private: | 59 private: |
63 SkScalar fDx, fDy, fSigmaX, fSigmaY; | 60 SkScalar fDx, fDy, fSigmaX, fSigmaY; |
64 SkColor fColor; | 61 SkColor fColor; |
65 ShadowMode fShadowMode; | 62 ShadowMode fShadowMode; |
66 typedef SkImageFilter INHERITED; | 63 typedef SkImageFilter INHERITED; |
67 }; | 64 }; |
OLD | NEW |