OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 The Android Open Source Project | 2 * Copyright 2013 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 SkPictureImageFilter_DEFINED | 8 #ifndef SkPictureImageFilter_DEFINED |
9 #define SkPictureImageFilter_DEFINED | 9 #define SkPictureImageFilter_DEFINED |
10 | 10 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 explicit SkPictureImageFilter(const SkPicture* picture); | 62 explicit SkPictureImageFilter(const SkPicture* picture); |
63 SkPictureImageFilter(const SkPicture* picture, const SkRect& cropRect, | 63 SkPictureImageFilter(const SkPicture* picture, const SkRect& cropRect, |
64 PictureResolution, SkFilterQuality); | 64 PictureResolution, SkFilterQuality); |
65 virtual ~SkPictureImageFilter(); | 65 virtual ~SkPictureImageFilter(); |
66 /* Constructs an SkPictureImageFilter object from an SkReadBuffer. | 66 /* Constructs an SkPictureImageFilter object from an SkReadBuffer. |
67 * Note: If the SkPictureImageFilter object construction requires bitmap | 67 * Note: If the SkPictureImageFilter object construction requires bitmap |
68 * decoding, the decoder must be set on the SkReadBuffer parameter by calli
ng | 68 * decoding, the decoder must be set on the SkReadBuffer parameter by calli
ng |
69 * SkReadBuffer::setBitmapDecoder() before calling this constructor. | 69 * SkReadBuffer::setBitmapDecoder() before calling this constructor. |
70 * @param SkReadBuffer Serialized picture data. | 70 * @param SkReadBuffer Serialized picture data. |
71 */ | 71 */ |
72 void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 72 void flatten(SkWriteBuffer&) const override; |
73 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, | 73 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
74 SkBitmap* result, SkIPoint* offset) const SK_OVER
RIDE; | 74 SkBitmap* result, SkIPoint* offset) const overrid
e; |
75 | 75 |
76 private: | 76 private: |
77 | 77 |
78 | 78 |
79 void drawPictureAtDeviceResolution(Proxy*, SkBaseDevice*, const SkIRect& dev
iceBounds, | 79 void drawPictureAtDeviceResolution(Proxy*, SkBaseDevice*, const SkIRect& dev
iceBounds, |
80 const Context&) const; | 80 const Context&) const; |
81 void drawPictureAtLocalResolution(Proxy*, SkBaseDevice*, const SkIRect& devi
ceBounds, | 81 void drawPictureAtLocalResolution(Proxy*, SkBaseDevice*, const SkIRect& devi
ceBounds, |
82 const Context&) const; | 82 const Context&) const; |
83 | 83 |
84 const SkPicture* fPicture; | 84 const SkPicture* fPicture; |
85 SkRect fCropRect; | 85 SkRect fCropRect; |
86 PictureResolution fPictureResolution; | 86 PictureResolution fPictureResolution; |
87 SkFilterQuality fFilterQuality; | 87 SkFilterQuality fFilterQuality; |
88 typedef SkImageFilter INHERITED; | 88 typedef SkImageFilter INHERITED; |
89 }; | 89 }; |
90 | 90 |
91 #endif | 91 #endif |
OLD | NEW |