OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 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 #include "SkComposeShader.h" | 10 #include "SkComposeShader.h" |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 } | 169 } |
170 } | 170 } |
171 | 171 |
172 result += n; | 172 result += n; |
173 x += n; | 173 x += n; |
174 count -= n; | 174 count -= n; |
175 } while (count > 0); | 175 } while (count > 0); |
176 } | 176 } |
177 } | 177 } |
178 | 178 |
179 #ifdef SK_DEVELOPER | 179 #ifndef SK_IGNORE_TO_STRING |
180 void SkComposeShader::toString(SkString* str) const { | 180 void SkComposeShader::toString(SkString* str) const { |
181 str->append("SkComposeShader: ("); | 181 str->append("SkComposeShader: ("); |
182 | 182 |
183 str->append("ShaderA: "); | 183 str->append("ShaderA: "); |
184 fShaderA->toString(str); | 184 fShaderA->toString(str); |
185 str->append(" ShaderB: "); | 185 str->append(" ShaderB: "); |
186 fShaderB->toString(str); | 186 fShaderB->toString(str); |
187 str->append(" Xfermode: "); | 187 str->append(" Xfermode: "); |
188 fMode->toString(str); | 188 fMode->toString(str); |
189 | 189 |
190 this->INHERITED::toString(str); | 190 this->INHERITED::toString(str); |
191 | 191 |
192 str->append(")"); | 192 str->append(")"); |
193 } | 193 } |
194 #endif | 194 #endif |
OLD | NEW |