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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; | 37 virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE; |
38 | 38 |
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 SkPaint::FilterLevel, | 43 SkPaint::FilterLevel, |
44 SkImageFilter* input, | 44 SkImageFilter* input, |
45 uint32_t uniqueID); | 45 uint32_t uniqueID); |
46 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING | |
47 SkMatrixImageFilter(SkReadBuffer& buffer); | |
48 #endif | |
49 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 46 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
50 | 47 |
51 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, | 48 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
52 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; | 49 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; |
53 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, | 50 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, |
54 SkIRect* dst) const SK_OVERRIDE; | 51 SkIRect* dst) const SK_OVERRIDE; |
55 | 52 |
56 private: | 53 private: |
57 SkMatrix fTransform; | 54 SkMatrix fTransform; |
58 SkPaint::FilterLevel fFilterLevel; | 55 SkPaint::FilterLevel fFilterLevel; |
59 typedef SkImageFilter INHERITED; | 56 typedef SkImageFilter INHERITED; |
60 }; | 57 }; |
61 | 58 |
62 #endif | 59 #endif |
OLD | NEW |