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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 static SkRectShaderImageFilter* Create(SkShader* s, const CropRect* rect = N
ULL); | 31 static SkRectShaderImageFilter* Create(SkShader* s, const CropRect* rect = N
ULL); |
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 SkRectShaderImageFilter(SkReadBuffer& buffer); | 37 SkRectShaderImageFilter(SkReadBuffer& buffer); |
38 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 38 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
39 | 39 |
40 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, | 40 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
41 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; | 41 SkBitmap* result, SkIPoint* loc) const SK_OVERRID
E; |
42 | 42 |
43 private: | 43 private: |
44 SkRectShaderImageFilter(SkShader* s, const CropRect* rect); | 44 SkRectShaderImageFilter(SkShader* s, const CropRect* rect); |
45 SkShader* fShader; | 45 SkShader* fShader; |
46 | 46 |
47 typedef SkImageFilter INHERITED; | 47 typedef SkImageFilter INHERITED; |
48 }; | 48 }; |
49 | 49 |
50 #endif | 50 #endif |
OLD | NEW |