| 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 22 matching lines...) Expand all Loading... |
| 33 protected: | 33 protected: |
| 34 virtual ~SkPictureImageFilter(); | 34 virtual ~SkPictureImageFilter(); |
| 35 /* Constructs an SkPictureImageFilter object from an SkReadBuffer. | 35 /* Constructs an SkPictureImageFilter object from an SkReadBuffer. |
| 36 * Note: If the SkPictureImageFilter object construction requires bitmap | 36 * Note: If the SkPictureImageFilter object construction requires bitmap |
| 37 * decoding, the decoder must be set on the SkReadBuffer parameter by calli
ng | 37 * decoding, the decoder must be set on the SkReadBuffer parameter by calli
ng |
| 38 * SkReadBuffer::setBitmapDecoder() before calling this constructor. | 38 * SkReadBuffer::setBitmapDecoder() before calling this constructor. |
| 39 * @param SkReadBuffer Serialized picture data. | 39 * @param SkReadBuffer Serialized picture data. |
| 40 */ | 40 */ |
| 41 explicit SkPictureImageFilter(SkReadBuffer&); | 41 explicit SkPictureImageFilter(SkReadBuffer&); |
| 42 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 42 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 43 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, | 43 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
| 44 SkBitmap* result, SkIPoint* offset) const SK_OVER
RIDE; | 44 SkBitmap* result, SkIPoint* offset) const SK_OVER
RIDE; |
| 45 | 45 |
| 46 #ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS | 46 #ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS |
| 47 public: | 47 public: |
| 48 #endif | 48 #endif |
| 49 explicit SkPictureImageFilter(SkPicture* picture); | 49 explicit SkPictureImageFilter(SkPicture* picture); |
| 50 SkPictureImageFilter(SkPicture* picture, const SkRect& cropRect); | 50 SkPictureImageFilter(SkPicture* picture, const SkRect& cropRect); |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 SkPicture* fPicture; | 53 SkPicture* fPicture; |
| 54 SkRect fCropRect; | 54 SkRect fCropRect; |
| 55 typedef SkImageFilter INHERITED; | 55 typedef SkImageFilter INHERITED; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 #endif | 58 #endif |
| OLD | NEW |