OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 The Android Open Source Project | 3 * Copyright 2011 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkDrawLooper_DEFINED | 10 #ifndef SkDrawLooper_DEFINED |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 * 1. The first layer (bottom most) just has a blur and translate | 100 * 1. The first layer (bottom most) just has a blur and translate |
101 * 2. The second layer has no modifications to either paint or canvas | 101 * 2. The second layer has no modifications to either paint or canvas |
102 * 3. No other layers. | 102 * 3. No other layers. |
103 * then return true, and if not null, fill out the BlurShadowRec). | 103 * then return true, and if not null, fill out the BlurShadowRec). |
104 * | 104 * |
105 * If any of the above are not met, return false and ignore the BlurShadowR
ec parameter. | 105 * If any of the above are not met, return false and ignore the BlurShadowR
ec parameter. |
106 */ | 106 */ |
107 virtual bool asABlurShadow(BlurShadowRec*) const; | 107 virtual bool asABlurShadow(BlurShadowRec*) const; |
108 | 108 |
109 SK_TO_STRING_PUREVIRT() | 109 SK_TO_STRING_PUREVIRT() |
110 SK_DEFINE_FLATTENABLE_TYPE(SkDrawLooper) | |
111 | 110 |
112 protected: | 111 protected: |
113 SkDrawLooper() {} | 112 SkDrawLooper() {} |
114 | 113 |
115 private: | 114 private: |
116 typedef SkFlattenable INHERITED; | 115 typedef SkFlattenable INHERITED; |
117 }; | 116 }; |
118 | 117 |
119 #endif | 118 #endif |
OLD | NEW |