| 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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 return NULL; | 573 return NULL; |
| 574 } | 574 } |
| 575 matrix.postConcat(inv); | 575 matrix.postConcat(inv); |
| 576 } | 576 } |
| 577 matrix.postConcat(fPtsToUnit); | 577 matrix.postConcat(fPtsToUnit); |
| 578 return GrRadialGradient::Create(context, *this, matrix, fTileMode); | 578 return GrRadialGradient::Create(context, *this, matrix, fTileMode); |
| 579 } | 579 } |
| 580 | 580 |
| 581 #else | 581 #else |
| 582 | 582 |
| 583 GrEffectRef* SkRadialGradient::asNewEffect(GrContext*, const SkPaint&) const { | 583 GrEffectRef* SkRadialGradient::asNewEffect(GrContext*, const SkPaint&, const SkM
atrix*) const { |
| 584 SkDEBUGFAIL("Should not call in GPU-less build"); | 584 SkDEBUGFAIL("Should not call in GPU-less build"); |
| 585 return NULL; | 585 return NULL; |
| 586 } | 586 } |
| 587 | 587 |
| 588 #endif | 588 #endif |
| 589 | 589 |
| 590 #ifndef SK_IGNORE_TO_STRING | 590 #ifndef SK_IGNORE_TO_STRING |
| 591 void SkRadialGradient::toString(SkString* str) const { | 591 void SkRadialGradient::toString(SkString* str) const { |
| 592 str->append("SkRadialGradient: ("); | 592 str->append("SkRadialGradient: ("); |
| 593 | 593 |
| 594 str->append("center: ("); | 594 str->append("center: ("); |
| 595 str->appendScalar(fCenter.fX); | 595 str->appendScalar(fCenter.fX); |
| 596 str->append(", "); | 596 str->append(", "); |
| 597 str->appendScalar(fCenter.fY); | 597 str->appendScalar(fCenter.fY); |
| 598 str->append(") radius: "); | 598 str->append(") radius: "); |
| 599 str->appendScalar(fRadius); | 599 str->appendScalar(fRadius); |
| 600 str->append(" "); | 600 str->append(" "); |
| 601 | 601 |
| 602 this->INHERITED::toString(str); | 602 this->INHERITED::toString(str); |
| 603 | 603 |
| 604 str->append(")"); | 604 str->append(")"); |
| 605 } | 605 } |
| 606 #endif | 606 #endif |
| OLD | NEW |