| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
| 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 #include "SkSweepGradient.h" | 9 #include "SkSweepGradient.h" |
| 10 | 10 |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 | 278 |
| 279 #else | 279 #else |
| 280 | 280 |
| 281 GrEffectRef* SkSweepGradient::asNewEffect(GrContext*, const SkPaint&) const { | 281 GrEffectRef* SkSweepGradient::asNewEffect(GrContext*, const SkPaint&) const { |
| 282 SkDEBUGFAIL("Should not call in GPU-less build"); | 282 SkDEBUGFAIL("Should not call in GPU-less build"); |
| 283 return NULL; | 283 return NULL; |
| 284 } | 284 } |
| 285 | 285 |
| 286 #endif | 286 #endif |
| 287 | 287 |
| 288 #ifdef SK_DEVELOPER | 288 #ifndef SK_IGNORE_TO_STRING |
| 289 void SkSweepGradient::toString(SkString* str) const { | 289 void SkSweepGradient::toString(SkString* str) const { |
| 290 str->append("SkSweepGradient: ("); | 290 str->append("SkSweepGradient: ("); |
| 291 | 291 |
| 292 str->append("center: ("); | 292 str->append("center: ("); |
| 293 str->appendScalar(fCenter.fX); | 293 str->appendScalar(fCenter.fX); |
| 294 str->append(", "); | 294 str->append(", "); |
| 295 str->appendScalar(fCenter.fY); | 295 str->appendScalar(fCenter.fY); |
| 296 str->append(") "); | 296 str->append(") "); |
| 297 | 297 |
| 298 this->INHERITED::toString(str); | 298 this->INHERITED::toString(str); |
| 299 | 299 |
| 300 str->append(")"); | 300 str->append(")"); |
| 301 } | 301 } |
| 302 #endif | 302 #endif |
| OLD | NEW |