| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 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 SkEmbossMaskFilter_DEFINED | 8 #ifndef SkEmbossMaskFilter_DEFINED |
| 9 #define SkEmbossMaskFilter_DEFINED | 9 #define SkEmbossMaskFilter_DEFINED |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 return SkNEW_ARGS(SkEmbossMaskFilter, (blurSigma, light)); | 27 return SkNEW_ARGS(SkEmbossMaskFilter, (blurSigma, light)); |
| 28 } | 28 } |
| 29 | 29 |
| 30 // overrides from SkMaskFilter | 30 // overrides from SkMaskFilter |
| 31 // This method is not exported to java. | 31 // This method is not exported to java. |
| 32 virtual SkMask::Format getFormat() const SK_OVERRIDE; | 32 virtual SkMask::Format getFormat() const SK_OVERRIDE; |
| 33 // This method is not exported to java. | 33 // This method is not exported to java. |
| 34 virtual bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&, | 34 virtual bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&, |
| 35 SkIPoint* margin) const SK_OVERRIDE; | 35 SkIPoint* margin) const SK_OVERRIDE; |
| 36 | 36 |
| 37 SkDEVCODE(virtual void toString(SkString* str) const SK_OVERRIDE;) | 37 SK_TO_STRING_OVERRIDE() |
| 38 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkEmbossMaskFilter) | 38 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkEmbossMaskFilter) |
| 39 | 39 |
| 40 protected: | 40 protected: |
| 41 SkEmbossMaskFilter(SkReadBuffer&); | 41 SkEmbossMaskFilter(SkReadBuffer&); |
| 42 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 42 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 43 | 43 |
| 44 #ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS | 44 #ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS |
| 45 public: | 45 public: |
| 46 #endif | 46 #endif |
| 47 SkEmbossMaskFilter(SkScalar blurSigma, const Light& light); | 47 SkEmbossMaskFilter(SkScalar blurSigma, const Light& light); |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 Light fLight; | 50 Light fLight; |
| 51 SkScalar fBlurSigma; | 51 SkScalar fBlurSigma; |
| 52 | 52 |
| 53 typedef SkMaskFilter INHERITED; | 53 typedef SkMaskFilter INHERITED; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 #endif | 56 #endif |
| OLD | NEW |