| 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 19 matching lines...) Expand all Loading... |
| 30 } | 30 } |
| 31 | 31 |
| 32 void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; | 32 void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; |
| 33 SK_TO_STRING_OVERRIDE() | 33 SK_TO_STRING_OVERRIDE() |
| 34 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter) | 34 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter) |
| 35 | 35 |
| 36 protected: | 36 protected: |
| 37 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar
sigmaY, SkColor, | 37 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar
sigmaY, SkColor, |
| 38 ShadowMode shadowMode, SkImageFilter* input, const C
ropRect* cropRect); | 38 ShadowMode shadowMode, SkImageFilter* input, const C
ropRect* cropRect); |
| 39 void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 39 void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 40 bool onFilterImage(Proxy*, const SkBitmap& source, const Context&, SkBitmap*
result, SkIPoint* loc) const SK_OVERRIDE; | 40 bool onFilterImage(Proxy*, const SkImage* source, const Context&, |
| 41 SkAutoTUnref<const SkImage>& result, |
| 42 SkIPoint* loc) const SK_OVERRIDE; |
| 41 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, | 43 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, |
| 42 SkIRect* dst) const SK_OVERRIDE; | 44 SkIRect* dst) const SK_OVERRIDE; |
| 43 | 45 |
| 44 private: | 46 private: |
| 45 SkScalar fDx, fDy, fSigmaX, fSigmaY; | 47 SkScalar fDx, fDy, fSigmaX, fSigmaY; |
| 46 SkColor fColor; | 48 SkColor fColor; |
| 47 ShadowMode fShadowMode; | 49 ShadowMode fShadowMode; |
| 48 typedef SkImageFilter INHERITED; | 50 typedef SkImageFilter INHERITED; |
| 49 }; | 51 }; |
| OLD | NEW |