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 13 matching lines...) Expand all Loading... |
24 */ | 24 */ |
25 SkPictureImageFilter(SkPicture* picture, const SkRect& rect); | 25 SkPictureImageFilter(SkPicture* picture, const SkRect& rect); |
26 | 26 |
27 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPictureImageFilter) | 27 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPictureImageFilter) |
28 | 28 |
29 protected: | 29 protected: |
30 virtual ~SkPictureImageFilter(); | 30 virtual ~SkPictureImageFilter(); |
31 explicit SkPictureImageFilter(SkReadBuffer& buffer); | 31 explicit SkPictureImageFilter(SkReadBuffer& buffer); |
32 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 32 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
33 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, | 33 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, |
34 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE; | 34 SkBitmap* result, SkIPoint* offset) const SK_OVER
RIDE; |
35 | 35 |
36 private: | 36 private: |
37 SkPicture* fPicture; | 37 SkPicture* fPicture; |
38 SkRect fRect; | 38 SkRect fRect; |
39 typedef SkImageFilter INHERITED; | 39 typedef SkImageFilter INHERITED; |
40 }; | 40 }; |
41 | 41 |
42 #endif | 42 #endif |
OLD | NEW |