| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 The Android Open Source Project | 2 * Copyright 2013 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 SkResizeImageFilter_DEFINED | 8 #ifndef SkResizeImageFilter_DEFINED |
| 9 #define SkResizeImageFilter_DEFINED | 9 #define SkResizeImageFilter_DEFINED |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 } | 36 } |
| 37 | 37 |
| 38 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; | 38 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; |
| 39 | 39 |
| 40 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkResizeImageFilter) | 40 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkResizeImageFilter) |
| 41 | 41 |
| 42 protected: | 42 protected: |
| 43 SkResizeImageFilter(SkReadBuffer& buffer); | 43 SkResizeImageFilter(SkReadBuffer& buffer); |
| 44 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 44 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 45 | 45 |
| 46 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, | 46 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
| 47 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; | 47 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; |
| 48 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, | 48 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, |
| 49 SkIRect* dst) const SK_OVERRIDE; | 49 SkIRect* dst) const SK_OVERRIDE; |
| 50 | 50 |
| 51 #ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS | 51 #ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS |
| 52 public: | 52 public: |
| 53 #endif | 53 #endif |
| 54 SkResizeImageFilter(SkScalar sx, SkScalar sy, SkPaint::FilterLevel filterLev
el, | 54 SkResizeImageFilter(SkScalar sx, SkScalar sy, SkPaint::FilterLevel filterLev
el, |
| 55 SkImageFilter* input = NULL); | 55 SkImageFilter* input = NULL); |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 SkScalar fSx, fSy; | 58 SkScalar fSx, fSy; |
| 59 SkPaint::FilterLevel fFilterLevel; | 59 SkPaint::FilterLevel fFilterLevel; |
| 60 typedef SkImageFilter INHERITED; | 60 typedef SkImageFilter INHERITED; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 #endif | 63 #endif |
| OLD | NEW |