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 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 static SkMatrixImageFilter* Create(const SkMatrix& transform, | 31 static SkMatrixImageFilter* Create(const SkMatrix& transform, |
32 SkPaint::FilterLevel, | 32 SkPaint::FilterLevel, |
33 SkImageFilter* input = NULL, | 33 SkImageFilter* input = NULL, |
34 uint32_t uniqueID = 0); | 34 uint32_t uniqueID = 0); |
35 virtual ~SkMatrixImageFilter(); | 35 virtual ~SkMatrixImageFilter(); |
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_TO_STRING_OVERRIDE() |
39 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixImageFilter) | 40 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixImageFilter) |
40 | 41 |
41 protected: | 42 protected: |
42 SkMatrixImageFilter(const SkMatrix& transform, | 43 SkMatrixImageFilter(const SkMatrix& transform, |
43 SkPaint::FilterLevel, | 44 SkPaint::FilterLevel, |
44 SkImageFilter* input, | 45 SkImageFilter* input, |
45 uint32_t uniqueID); | 46 uint32_t uniqueID); |
46 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 47 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
47 | 48 |
48 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, | 49 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
49 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; | 50 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; |
50 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, | 51 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, |
51 SkIRect* dst) const SK_OVERRIDE; | 52 SkIRect* dst) const SK_OVERRIDE; |
52 | 53 |
53 private: | 54 private: |
54 SkMatrix fTransform; | 55 SkMatrix fTransform; |
55 SkPaint::FilterLevel fFilterLevel; | 56 SkPaint::FilterLevel fFilterLevel; |
56 typedef SkImageFilter INHERITED; | 57 typedef SkImageFilter INHERITED; |
57 }; | 58 }; |
58 | 59 |
59 #endif | 60 #endif |
OLD | NEW |