OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2008 The Android Open Source Project | 2 * Copyright 2008 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 | 8 |
9 #ifndef SkBlurDrawLooper_DEFINED | 9 #ifndef SkBlurDrawLooper_DEFINED |
10 #define SkBlurDrawLooper_DEFINED | 10 #define SkBlurDrawLooper_DEFINED |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 // SK_ATTR_DEPRECATED("use sigma version") | 41 // SK_ATTR_DEPRECATED("use sigma version") |
42 SkBlurDrawLooper(SkScalar radius, SkScalar dx, SkScalar dy, SkColor color, | 42 SkBlurDrawLooper(SkScalar radius, SkScalar dx, SkScalar dy, SkColor color, |
43 uint32_t flags = kNone_BlurFlag); | 43 uint32_t flags = kNone_BlurFlag); |
44 virtual ~SkBlurDrawLooper(); | 44 virtual ~SkBlurDrawLooper(); |
45 | 45 |
46 virtual SkDrawLooper::Context* createContext(SkCanvas*, void* storage) const
SK_OVERRIDE; | 46 virtual SkDrawLooper::Context* createContext(SkCanvas*, void* storage) const
SK_OVERRIDE; |
47 | 47 |
48 virtual size_t contextSize() const SK_OVERRIDE { return sizeof(BlurDrawLoope
rContext); } | 48 virtual size_t contextSize() const SK_OVERRIDE { return sizeof(BlurDrawLoope
rContext); } |
49 | 49 |
50 SK_DEVELOPER_TO_STRING() | 50 SK_TO_STRING_OVERRIDE() |
51 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurDrawLooper) | 51 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurDrawLooper) |
52 | 52 |
53 protected: | 53 protected: |
54 SkBlurDrawLooper(SkReadBuffer&); | 54 SkBlurDrawLooper(SkReadBuffer&); |
55 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 55 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
56 | 56 |
57 private: | 57 private: |
58 SkMaskFilter* fBlur; | 58 SkMaskFilter* fBlur; |
59 SkColorFilter* fColorFilter; | 59 SkColorFilter* fColorFilter; |
60 SkScalar fDx, fDy; | 60 SkScalar fDx, fDy; |
(...skipping 16 matching lines...) Expand all Loading... |
77 const SkBlurDrawLooper* fLooper; | 77 const SkBlurDrawLooper* fLooper; |
78 State fState; | 78 State fState; |
79 }; | 79 }; |
80 | 80 |
81 void init(SkScalar sigma, SkScalar dx, SkScalar dy, SkColor color, uint32_t
flags); | 81 void init(SkScalar sigma, SkScalar dx, SkScalar dy, SkColor color, uint32_t
flags); |
82 | 82 |
83 typedef SkDrawLooper INHERITED; | 83 typedef SkDrawLooper INHERITED; |
84 }; | 84 }; |
85 | 85 |
86 #endif | 86 #endif |
OLD | NEW |