| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 explicit SkPictureImageFilter(const SkPicture* picture, uint32_t uniqueID); | 58 explicit SkPictureImageFilter(const SkPicture* picture, uint32_t uniqueID); |
| 59 SkPictureImageFilter(const SkPicture* picture, const SkRect& cropRect, uint3
2_t uniqueID, | 59 SkPictureImageFilter(const SkPicture* picture, const SkRect& cropRect, uint3
2_t uniqueID, |
| 60 PictureResolution, SkPaint::FilterLevel); | 60 PictureResolution, SkPaint::FilterLevel); |
| 61 virtual ~SkPictureImageFilter(); | 61 virtual ~SkPictureImageFilter(); |
| 62 /* Constructs an SkPictureImageFilter object from an SkReadBuffer. | 62 /* Constructs an SkPictureImageFilter object from an SkReadBuffer. |
| 63 * Note: If the SkPictureImageFilter object construction requires bitmap | 63 * Note: If the SkPictureImageFilter object construction requires bitmap |
| 64 * decoding, the decoder must be set on the SkReadBuffer parameter by calli
ng | 64 * decoding, the decoder must be set on the SkReadBuffer parameter by calli
ng |
| 65 * SkReadBuffer::setBitmapDecoder() before calling this constructor. | 65 * SkReadBuffer::setBitmapDecoder() before calling this constructor. |
| 66 * @param SkReadBuffer Serialized picture data. | 66 * @param SkReadBuffer Serialized picture data. |
| 67 */ | 67 */ |
| 68 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 68 void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 69 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, | 69 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
| 70 SkBitmap* result, SkIPoint* offset) const SK_OVER
RIDE; | 70 SkBitmap* result, SkIPoint* offset) const SK_OVER
RIDE; |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 | 73 |
| 74 | 74 |
| 75 void drawPictureAtDeviceResolution(Proxy*, SkBaseDevice*, const SkIRect& dev
iceBounds, | 75 void drawPictureAtDeviceResolution(Proxy*, SkBaseDevice*, const SkIRect& dev
iceBounds, |
| 76 const Context&) const; | 76 const Context&) const; |
| 77 void drawPictureAtLocalResolution(Proxy*, SkBaseDevice*, const SkIRect& devi
ceBounds, | 77 void drawPictureAtLocalResolution(Proxy*, SkBaseDevice*, const SkIRect& devi
ceBounds, |
| 78 const Context&) const; | 78 const Context&) const; |
| 79 | 79 |
| 80 const SkPicture* fPicture; | 80 const SkPicture* fPicture; |
| 81 SkRect fCropRect; | 81 SkRect fCropRect; |
| 82 PictureResolution fPictureResolution; | 82 PictureResolution fPictureResolution; |
| 83 SkPaint::FilterLevel fFilterLevel; | 83 SkPaint::FilterLevel fFilterLevel; |
| 84 typedef SkImageFilter INHERITED; | 84 typedef SkImageFilter INHERITED; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 #endif | 87 #endif |
| OLD | NEW |