| 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 15 matching lines...) Expand all Loading... |
| 26 * @param filterLevel The quality of filtering to apply when scaling. | 26 * @param filterLevel The quality of filtering to apply when scaling. |
| 27 * @param input The input image filter. If nullptr, the src bitmap | 27 * @param input The input image filter. If nullptr, the src bitmap |
| 28 * passed to filterImage() is used instead. | 28 * passed to filterImage() is used instead. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 static SkMatrixImageFilter* Create(const SkMatrix& transform, | 31 static SkMatrixImageFilter* Create(const SkMatrix& transform, |
| 32 SkFilterQuality, | 32 SkFilterQuality, |
| 33 SkImageFilter* input = nullptr); | 33 SkImageFilter* input = nullptr); |
| 34 virtual ~SkMatrixImageFilter(); | 34 virtual ~SkMatrixImageFilter(); |
| 35 | 35 |
| 36 void computeFastBounds(const SkRect&, SkRect*) const override; | 36 SkRect computeFastBounds(const SkRect&) const override; |
| 37 | 37 |
| 38 SK_TO_STRING_OVERRIDE() | 38 SK_TO_STRING_OVERRIDE() |
| 39 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixImageFilter) | 39 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixImageFilter) |
| 40 | 40 |
| 41 protected: | 41 protected: |
| 42 SkMatrixImageFilter(const SkMatrix& transform, | 42 SkMatrixImageFilter(const SkMatrix& transform, |
| 43 SkFilterQuality, | 43 SkFilterQuality, |
| 44 SkImageFilter* input); | 44 SkImageFilter* input); |
| 45 void flatten(SkWriteBuffer&) const override; | 45 void flatten(SkWriteBuffer&) const override; |
| 46 | 46 |
| 47 bool onFilterImageDeprecated(Proxy*, const SkBitmap& src, const Context&, | 47 bool onFilterImageDeprecated(Proxy*, const SkBitmap& src, const Context&, |
| 48 SkBitmap* result, SkIPoint* loc) const override
; | 48 SkBitmap* result, SkIPoint* loc) const override
; |
| 49 void onFilterNodeBounds(const SkIRect& src, const SkMatrix&, | 49 SkIRect onFilterNodeBounds(const SkIRect& src, const SkMatrix&, MapDirection
) const override; |
| 50 SkIRect* dst, MapDirection) const override; | |
| 51 | 50 |
| 52 private: | 51 private: |
| 53 SkMatrix fTransform; | 52 SkMatrix fTransform; |
| 54 SkFilterQuality fFilterQuality; | 53 SkFilterQuality fFilterQuality; |
| 55 typedef SkImageFilter INHERITED; | 54 typedef SkImageFilter INHERITED; |
| 56 }; | 55 }; |
| 57 | 56 |
| 58 #endif | 57 #endif |
| OLD | NEW |