| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 The Android Open Source Project | 2 * Copyright 2014 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 SkMatrixImageFilter_DEFINED | 8 #ifndef SkMatrixImageFilter_DEFINED |
| 9 #define SkMatrixImageFilter_DEFINED | 9 #define SkMatrixImageFilter_DEFINED |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 virtual ~SkMatrixImageFilter(); | 34 virtual ~SkMatrixImageFilter(); |
| 35 | 35 |
| 36 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; | 36 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; |
| 37 | 37 |
| 38 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixImageFilter) | 38 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixImageFilter) |
| 39 | 39 |
| 40 protected: | 40 protected: |
| 41 SkMatrixImageFilter(const SkMatrix& transform, | 41 SkMatrixImageFilter(const SkMatrix& transform, |
| 42 SkPaint::FilterLevel, | 42 SkPaint::FilterLevel, |
| 43 SkImageFilter* input); | 43 SkImageFilter* input); |
| 44 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
| 44 SkMatrixImageFilter(SkReadBuffer& buffer); | 45 SkMatrixImageFilter(SkReadBuffer& buffer); |
| 46 #endif |
| 45 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 47 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 46 | 48 |
| 47 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, | 49 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
| 48 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; | 50 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; |
| 49 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, | 51 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, |
| 50 SkIRect* dst) const SK_OVERRIDE; | 52 SkIRect* dst) const SK_OVERRIDE; |
| 51 | 53 |
| 52 private: | 54 private: |
| 53 SkMatrix fTransform; | 55 SkMatrix fTransform; |
| 54 SkPaint::FilterLevel fFilterLevel; | 56 SkPaint::FilterLevel fFilterLevel; |
| 55 typedef SkImageFilter INHERITED; | 57 typedef SkImageFilter INHERITED; |
| 56 }; | 58 }; |
| 57 | 59 |
| 58 #endif | 60 #endif |
| OLD | NEW |