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 SkRectShaderImageFilter_DEFINED | 8 #ifndef SkRectShaderImageFilter_DEFINED |
9 #define SkRectShaderImageFilter_DEFINED | 9 #define SkRectShaderImageFilter_DEFINED |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 */ | 27 */ |
28 SK_ATTR_DEPRECATED("use Create(SkShader*, const CropRect*)") | 28 SK_ATTR_DEPRECATED("use Create(SkShader*, const CropRect*)") |
29 static SkRectShaderImageFilter* Create(SkShader* s, const SkRect& rect); | 29 static SkRectShaderImageFilter* Create(SkShader* s, const SkRect& rect); |
30 | 30 |
31 static SkRectShaderImageFilter* Create(SkShader* s, const CropRect* rect = N
ULL, uint32_t uniqueID = 0); | 31 static SkRectShaderImageFilter* Create(SkShader* s, const CropRect* rect = N
ULL, uint32_t uniqueID = 0); |
32 virtual ~SkRectShaderImageFilter(); | 32 virtual ~SkRectShaderImageFilter(); |
33 | 33 |
34 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkRectShaderImageFilter) | 34 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkRectShaderImageFilter) |
35 | 35 |
36 protected: | 36 protected: |
37 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING | |
38 SkRectShaderImageFilter(SkReadBuffer& buffer); | |
39 #endif | |
40 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 37 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
41 | 38 |
42 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, | 39 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
43 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; | 40 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; |
44 | 41 |
45 private: | 42 private: |
46 SkRectShaderImageFilter(SkShader* s, const CropRect* rect, uint32_t uniqueID
= 0); | 43 SkRectShaderImageFilter(SkShader* s, const CropRect* rect, uint32_t uniqueID
= 0); |
47 SkShader* fShader; | 44 SkShader* fShader; |
48 | 45 |
49 typedef SkImageFilter INHERITED; | 46 typedef SkImageFilter INHERITED; |
50 }; | 47 }; |
51 | 48 |
52 #endif | 49 #endif |
OLD | NEW |