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