| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; | 51 void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; |
| 52 SK_TO_STRING_OVERRIDE() | 52 SK_TO_STRING_OVERRIDE() |
| 53 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter) | 53 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDropShadowImageFilter) |
| 54 | 54 |
| 55 protected: | 55 protected: |
| 56 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar
sigmaY, SkColor, | 56 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar
sigmaY, SkColor, |
| 57 ShadowMode shadowMode, SkImageFilter* input, const C
ropRect* cropRect, | 57 ShadowMode shadowMode, SkImageFilter* input, const C
ropRect* cropRect, |
| 58 uint32_t uniqueID); | 58 uint32_t uniqueID); |
| 59 void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 59 void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 60 bool onFilterImage(Proxy*, const SkBitmap& source, const Context&, SkBitmap*
result, SkIPoint* loc) const SK_OVERRIDE; | 60 bool onFilterImage(Proxy*, SkImage& source, const Context&, SkAutoTUnref<SkI
mage>& result, |
| 61 SkIPoint* loc) const SK_OVERRIDE; |
| 61 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, | 62 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, |
| 62 SkIRect* dst) const SK_OVERRIDE; | 63 SkIRect* dst) const SK_OVERRIDE; |
| 63 | 64 |
| 64 private: | 65 private: |
| 65 SkScalar fDx, fDy, fSigmaX, fSigmaY; | 66 SkScalar fDx, fDy, fSigmaX, fSigmaY; |
| 66 SkColor fColor; | 67 SkColor fColor; |
| 67 ShadowMode fShadowMode; | 68 ShadowMode fShadowMode; |
| 68 typedef SkImageFilter INHERITED; | 69 typedef SkImageFilter INHERITED; |
| 69 }; | 70 }; |
| OLD | NEW |