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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 virtual size_t contextSize() const SK_OVERRIDE { return sizeof(BlurDrawLoope
rContext); } | 47 virtual size_t contextSize() const SK_OVERRIDE { return sizeof(BlurDrawLoope
rContext); } |
48 | 48 |
49 SK_TO_STRING_OVERRIDE() | 49 SK_TO_STRING_OVERRIDE() |
50 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurDrawLooper) | 50 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBlurDrawLooper) |
51 | 51 |
52 protected: | 52 protected: |
53 SkBlurDrawLooper(SkColor color, SkScalar sigma, SkScalar dx, SkScalar dy, | 53 SkBlurDrawLooper(SkColor color, SkScalar sigma, SkScalar dx, SkScalar dy, |
54 uint32_t flags); | 54 uint32_t flags); |
55 | 55 |
56 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING | |
57 SkBlurDrawLooper(SkReadBuffer&); | |
58 #endif | |
59 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 56 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
60 | 57 |
61 virtual bool asABlurShadow(BlurShadowRec*) const SK_OVERRIDE; | 58 virtual bool asABlurShadow(BlurShadowRec*) const SK_OVERRIDE; |
62 | 59 |
63 private: | 60 private: |
64 SkMaskFilter* fBlur; | 61 SkMaskFilter* fBlur; |
65 SkColorFilter* fColorFilter; | 62 SkColorFilter* fColorFilter; |
66 SkScalar fDx, fDy, fSigma; | 63 SkScalar fDx, fDy, fSigma; |
67 SkColor fBlurColor; | 64 SkColor fBlurColor; |
68 uint32_t fBlurFlags; | 65 uint32_t fBlurFlags; |
(...skipping 15 matching lines...) Expand all Loading... |
84 State fState; | 81 State fState; |
85 }; | 82 }; |
86 | 83 |
87 void init(SkScalar sigma, SkScalar dx, SkScalar dy, SkColor color, uint32_t
flags); | 84 void init(SkScalar sigma, SkScalar dx, SkScalar dy, SkColor color, uint32_t
flags); |
88 void initEffects(); | 85 void initEffects(); |
89 | 86 |
90 typedef SkDrawLooper INHERITED; | 87 typedef SkDrawLooper INHERITED; |
91 }; | 88 }; |
92 | 89 |
93 #endif | 90 #endif |
OLD | NEW |