| 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 "SkTwoPointRadialGradient.h" | 9 #include "SkTwoPointRadialGradient.h" |
| 10 | 10 |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 | 300 |
| 301 if (!this->INHERITED::setContext(device, paint, matrix)) { | 301 if (!this->INHERITED::setContext(device, paint, matrix)) { |
| 302 return false; | 302 return false; |
| 303 } | 303 } |
| 304 | 304 |
| 305 // we don't have a span16 proc | 305 // we don't have a span16 proc |
| 306 fFlags &= ~kHasSpan16_Flag; | 306 fFlags &= ~kHasSpan16_Flag; |
| 307 return true; | 307 return true; |
| 308 } | 308 } |
| 309 | 309 |
| 310 #ifdef SK_DEVELOPER | 310 #ifndef SK_IGNORE_TO_STRING |
| 311 void SkTwoPointRadialGradient::toString(SkString* str) const { | 311 void SkTwoPointRadialGradient::toString(SkString* str) const { |
| 312 str->append("SkTwoPointRadialGradient: ("); | 312 str->append("SkTwoPointRadialGradient: ("); |
| 313 | 313 |
| 314 str->append("center1: ("); | 314 str->append("center1: ("); |
| 315 str->appendScalar(fCenter1.fX); | 315 str->appendScalar(fCenter1.fX); |
| 316 str->append(", "); | 316 str->append(", "); |
| 317 str->appendScalar(fCenter1.fY); | 317 str->appendScalar(fCenter1.fY); |
| 318 str->append(") radius1: "); | 318 str->append(") radius1: "); |
| 319 str->appendScalar(fRadius1); | 319 str->appendScalar(fRadius1); |
| 320 str->append(" "); | 320 str->append(" "); |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 } | 682 } |
| 683 | 683 |
| 684 #else | 684 #else |
| 685 | 685 |
| 686 GrEffectRef* SkTwoPointRadialGradient::asNewEffect(GrContext*, const SkPaint&) c
onst { | 686 GrEffectRef* SkTwoPointRadialGradient::asNewEffect(GrContext*, const SkPaint&) c
onst { |
| 687 SkDEBUGFAIL("Should not call in GPU-less build"); | 687 SkDEBUGFAIL("Should not call in GPU-less build"); |
| 688 return NULL; | 688 return NULL; |
| 689 } | 689 } |
| 690 | 690 |
| 691 #endif | 691 #endif |
| OLD | NEW |