| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 virtual ~SkPictureImageFilter(); | 55 virtual ~SkPictureImageFilter(); |
| 56 | 56 |
| 57 /* Constructs an SkPictureImageFilter object from an SkReadBuffer. | 57 /* Constructs an SkPictureImageFilter object from an SkReadBuffer. |
| 58 * Note: If the SkPictureImageFilter object construction requires bitmap | 58 * Note: If the SkPictureImageFilter object construction requires bitmap |
| 59 * decoding, the decoder must be set on the SkReadBuffer parameter by calli
ng | 59 * decoding, the decoder must be set on the SkReadBuffer parameter by calli
ng |
| 60 * SkReadBuffer::setBitmapDecoder() before calling this constructor. | 60 * SkReadBuffer::setBitmapDecoder() before calling this constructor. |
| 61 * @param SkReadBuffer Serialized picture data. | 61 * @param SkReadBuffer Serialized picture data. |
| 62 */ | 62 */ |
| 63 void flatten(SkWriteBuffer&) const override; | 63 void flatten(SkWriteBuffer&) const override; |
| 64 bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, SkBitmap* re
sult, | 64 bool onFilterImageDeprecated(Proxy*, const SkBitmap& src, const Context&, Sk
Bitmap* result, |
| 65 SkIPoint* offset) const override; | 65 SkIPoint* offset) const override; |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 explicit SkPictureImageFilter(const SkPicture* picture); | 68 explicit SkPictureImageFilter(const SkPicture* picture); |
| 69 SkPictureImageFilter(const SkPicture* picture, const SkRect& cropRect, | 69 SkPictureImageFilter(const SkPicture* picture, const SkRect& cropRect, |
| 70 PictureResolution, SkFilterQuality); | 70 PictureResolution, SkFilterQuality); |
| 71 | 71 |
| 72 void drawPictureAtDeviceResolution(SkBaseDevice*, const SkIRect& deviceBound
s, | 72 void drawPictureAtDeviceResolution(SkBaseDevice*, const SkIRect& deviceBound
s, |
| 73 const Context&) const; | 73 const Context&) const; |
| 74 void drawPictureAtLocalResolution(Proxy*, SkBaseDevice*, const SkIRect& devi
ceBounds, | 74 void drawPictureAtLocalResolution(Proxy*, SkBaseDevice*, const SkIRect& devi
ceBounds, |
| 75 const Context&) const; | 75 const Context&) const; |
| 76 | 76 |
| 77 const SkPicture* fPicture; | 77 const SkPicture* fPicture; |
| 78 SkRect fCropRect; | 78 SkRect fCropRect; |
| 79 PictureResolution fPictureResolution; | 79 PictureResolution fPictureResolution; |
| 80 SkFilterQuality fFilterQuality; | 80 SkFilterQuality fFilterQuality; |
| 81 | 81 |
| 82 typedef SkImageFilter INHERITED; | 82 typedef SkImageFilter INHERITED; |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 #endif | 85 #endif |
| OLD | NEW |