OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
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 SkTileImageFilter_DEFINED | 8 #ifndef SkTileImageFilter_DEFINED |
9 #define SkTileImageFilter_DEFINED | 9 #define SkTileImageFilter_DEFINED |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 virtual bool onFilterImage(Proxy* proxy, const SkBitmap& src, const Context&
ctx, | 25 virtual bool onFilterImage(Proxy* proxy, const SkBitmap& src, const Context&
ctx, |
26 SkBitmap* dst, SkIPoint* offset) const SK_OVERRID
E; | 26 SkBitmap* dst, SkIPoint* offset) const SK_OVERRID
E; |
27 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, | 27 virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, |
28 SkIRect* dst) const SK_OVERRIDE; | 28 SkIRect* dst) const SK_OVERRIDE; |
29 | 29 |
30 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTileImageFilter) | 30 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTileImageFilter) |
31 | 31 |
32 protected: | 32 protected: |
33 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilte
r* input, uint32_t uniqueID) | 33 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilte
r* input, uint32_t uniqueID) |
34 : INHERITED(1, &input, NULL, uniqueID), fSrcRect(srcRect), fDstRect(dstR
ect) {} | 34 : INHERITED(1, &input, NULL, uniqueID), fSrcRect(srcRect), fDstRect(dstR
ect) {} |
35 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING | |
36 explicit SkTileImageFilter(SkReadBuffer& buffer); | |
37 #endif | |
38 | 35 |
39 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE; | 36 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE; |
40 | 37 |
41 private: | 38 private: |
42 SkRect fSrcRect; | 39 SkRect fSrcRect; |
43 SkRect fDstRect; | 40 SkRect fDstRect; |
44 }; | 41 }; |
45 | 42 |
46 #endif | 43 #endif |
OLD | NEW |