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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 SkFilterQuality, | 50 SkFilterQuality, |
51 SkImageFilter* input); | 51 SkImageFilter* input); |
52 void flatten(SkWriteBuffer&) const override; | 52 void flatten(SkWriteBuffer&) const override; |
53 | 53 |
54 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, | 54 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
55 SkBitmap* result, SkIPoint* loc) const override; | 55 SkBitmap* result, SkIPoint* loc) const override; |
56 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, | 56 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, |
57 SkIRect* dst) const override; | 57 SkIRect* dst) const override; |
58 | 58 |
59 private: | 59 private: |
| 60 bool onMayDrawWithMatrix() const override { return true; } |
| 61 |
60 SkMatrix fTransform; | 62 SkMatrix fTransform; |
61 SkFilterQuality fFilterQuality; | 63 SkFilterQuality fFilterQuality; |
62 typedef SkImageFilter INHERITED; | 64 typedef SkImageFilter INHERITED; |
63 }; | 65 }; |
64 | 66 |
65 #endif | 67 #endif |
OLD | NEW |