| 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 return NULL; | 291 return NULL; |
| 292 } | 292 } |
| 293 matrix.postConcat(inv); | 293 matrix.postConcat(inv); |
| 294 } | 294 } |
| 295 matrix.postConcat(fPtsToUnit); | 295 matrix.postConcat(fPtsToUnit); |
| 296 return GrSweepGradient::Create(context, *this, matrix); | 296 return GrSweepGradient::Create(context, *this, matrix); |
| 297 } | 297 } |
| 298 | 298 |
| 299 #else | 299 #else |
| 300 | 300 |
| 301 GrEffectRef* SkSweepGradient::asNewEffect(GrContext*, const SkPaint&) const { | 301 GrEffectRef* SkSweepGradient::asNewEffect(GrContext*, const SkPaint&, const SkMa
trix*) const { |
| 302 SkDEBUGFAIL("Should not call in GPU-less build"); | 302 SkDEBUGFAIL("Should not call in GPU-less build"); |
| 303 return NULL; | 303 return NULL; |
| 304 } | 304 } |
| 305 | 305 |
| 306 #endif | 306 #endif |
| 307 | 307 |
| 308 #ifndef SK_IGNORE_TO_STRING | 308 #ifndef SK_IGNORE_TO_STRING |
| 309 void SkSweepGradient::toString(SkString* str) const { | 309 void SkSweepGradient::toString(SkString* str) const { |
| 310 str->append("SkSweepGradient: ("); | 310 str->append("SkSweepGradient: ("); |
| 311 | 311 |
| 312 str->append("center: ("); | 312 str->append("center: ("); |
| 313 str->appendScalar(fCenter.fX); | 313 str->appendScalar(fCenter.fX); |
| 314 str->append(", "); | 314 str->append(", "); |
| 315 str->appendScalar(fCenter.fY); | 315 str->appendScalar(fCenter.fY); |
| 316 str->append(") "); | 316 str->append(") "); |
| 317 | 317 |
| 318 this->INHERITED::toString(str); | 318 this->INHERITED::toString(str); |
| 319 | 319 |
| 320 str->append(")"); | 320 str->append(")"); |
| 321 } | 321 } |
| 322 #endif | 322 #endif |
| OLD | NEW |