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) |
110 | 111 |
111 protected: | 112 protected: |
112 SkDrawLooper() {} | 113 SkDrawLooper() {} |
113 | 114 |
114 private: | 115 private: |
115 typedef SkFlattenable INHERITED; | 116 typedef SkFlattenable INHERITED; |
116 }; | 117 }; |
117 | 118 |
118 #endif | 119 #endif |
OLD | NEW |