| 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 "SkRadialGradient.h" | 9 #include "SkRadialGradient.h" |
| 10 #include "SkRadialGradient_Table.h" | 10 #include "SkRadialGradient_Table.h" |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 | 556 |
| 557 #else | 557 #else |
| 558 | 558 |
| 559 GrEffectRef* SkRadialGradient::asNewEffect(GrContext*, const SkPaint&) const { | 559 GrEffectRef* SkRadialGradient::asNewEffect(GrContext*, const SkPaint&) const { |
| 560 SkDEBUGFAIL("Should not call in GPU-less build"); | 560 SkDEBUGFAIL("Should not call in GPU-less build"); |
| 561 return NULL; | 561 return NULL; |
| 562 } | 562 } |
| 563 | 563 |
| 564 #endif | 564 #endif |
| 565 | 565 |
| 566 #ifdef SK_DEVELOPER | 566 #ifndef SK_IGNORE_TO_STRING |
| 567 void SkRadialGradient::toString(SkString* str) const { | 567 void SkRadialGradient::toString(SkString* str) const { |
| 568 str->append("SkRadialGradient: ("); | 568 str->append("SkRadialGradient: ("); |
| 569 | 569 |
| 570 str->append("center: ("); | 570 str->append("center: ("); |
| 571 str->appendScalar(fCenter.fX); | 571 str->appendScalar(fCenter.fX); |
| 572 str->append(", "); | 572 str->append(", "); |
| 573 str->appendScalar(fCenter.fY); | 573 str->appendScalar(fCenter.fY); |
| 574 str->append(") radius: "); | 574 str->append(") radius: "); |
| 575 str->appendScalar(fRadius); | 575 str->appendScalar(fRadius); |
| 576 str->append(" "); | 576 str->append(" "); |
| 577 | 577 |
| 578 this->INHERITED::toString(str); | 578 this->INHERITED::toString(str); |
| 579 | 579 |
| 580 str->append(")"); | 580 str->append(")"); |
| 581 } | 581 } |
| 582 #endif | 582 #endif |
| OLD | NEW |