| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkTwoPointConicalGradient.h" | 8 #include "SkTwoPointConicalGradient.h" |
| 9 | 9 |
| 10 #include "SkTwoPointConicalGradient_gpu.h" | 10 #include "SkTwoPointConicalGradient_gpu.h" |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 GrEffectRef* SkTwoPointConicalGradient::asNewEffect(GrContext* context, const Sk
Paint&, | 383 GrEffectRef* SkTwoPointConicalGradient::asNewEffect(GrContext* context, const Sk
Paint&, |
| 384 const SkMatrix* localMatrix)
const { | 384 const SkMatrix* localMatrix)
const { |
| 385 SkASSERT(NULL != context); | 385 SkASSERT(NULL != context); |
| 386 SkASSERT(fPtsToUnit.isIdentity()); | 386 SkASSERT(fPtsToUnit.isIdentity()); |
| 387 | 387 |
| 388 return Gr2PtConicalGradientEffect::Create(context, *this, fTileMode, localMa
trix); | 388 return Gr2PtConicalGradientEffect::Create(context, *this, fTileMode, localMa
trix); |
| 389 } | 389 } |
| 390 | 390 |
| 391 #else | 391 #else |
| 392 | 392 |
| 393 GrEffectRef* SkTwoPointConicalGradient::asNewEffect(GrContext*, const SkPaint&)
const { | 393 GrEffectRef* SkTwoPointConicalGradient::asNewEffect(GrContext*, const SkPaint&, |
| 394 const SkMatrix*) const { |
| 394 SkDEBUGFAIL("Should not call in GPU-less build"); | 395 SkDEBUGFAIL("Should not call in GPU-less build"); |
| 395 return NULL; | 396 return NULL; |
| 396 } | 397 } |
| 397 | 398 |
| 398 #endif | 399 #endif |
| 399 | 400 |
| 400 #ifndef SK_IGNORE_TO_STRING | 401 #ifndef SK_IGNORE_TO_STRING |
| 401 void SkTwoPointConicalGradient::toString(SkString* str) const { | 402 void SkTwoPointConicalGradient::toString(SkString* str) const { |
| 402 str->append("SkTwoPointConicalGradient: ("); | 403 str->append("SkTwoPointConicalGradient: ("); |
| 403 | 404 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 415 str->appendScalar(fCenter2.fY); | 416 str->appendScalar(fCenter2.fY); |
| 416 str->append(") radius2: "); | 417 str->append(") radius2: "); |
| 417 str->appendScalar(fRadius2); | 418 str->appendScalar(fRadius2); |
| 418 str->append(" "); | 419 str->append(" "); |
| 419 | 420 |
| 420 this->INHERITED::toString(str); | 421 this->INHERITED::toString(str); |
| 421 | 422 |
| 422 str->append(")"); | 423 str->append(")"); |
| 423 } | 424 } |
| 424 #endif | 425 #endif |
| OLD | NEW |