| 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 "SkTwoPointConicalGradient.h" | 9 #include "SkTwoPointConicalGradient.h" |
| 10 | 10 |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 SkScalar fRadius0; | 434 SkScalar fRadius0; |
| 435 SkScalar fDiffRadius; | 435 SkScalar fDiffRadius; |
| 436 | 436 |
| 437 // @} | 437 // @} |
| 438 | 438 |
| 439 typedef GrGradientEffect INHERITED; | 439 typedef GrGradientEffect INHERITED; |
| 440 }; | 440 }; |
| 441 | 441 |
| 442 GR_DEFINE_EFFECT_TEST(GrConical2Gradient); | 442 GR_DEFINE_EFFECT_TEST(GrConical2Gradient); |
| 443 | 443 |
| 444 GrEffectRef* GrConical2Gradient::TestCreate(SkMWCRandom* random, | 444 GrEffectRef* GrConical2Gradient::TestCreate(SkRandom* random, |
| 445 GrContext* context, | 445 GrContext* context, |
| 446 const GrDrawTargetCaps&, | 446 const GrDrawTargetCaps&, |
| 447 GrTexture**) { | 447 GrTexture**) { |
| 448 SkPoint center1 = {random->nextUScalar1(), random->nextUScalar1()}; | 448 SkPoint center1 = {random->nextUScalar1(), random->nextUScalar1()}; |
| 449 SkScalar radius1 = random->nextUScalar1(); | 449 SkScalar radius1 = random->nextUScalar1(); |
| 450 SkPoint center2; | 450 SkPoint center2; |
| 451 SkScalar radius2; | 451 SkScalar radius2; |
| 452 do { | 452 do { |
| 453 center2.set(random->nextUScalar1(), random->nextUScalar1()); | 453 center2.set(random->nextUScalar1(), random->nextUScalar1()); |
| 454 radius2 = random->nextUScalar1 (); | 454 radius2 = random->nextUScalar1 (); |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 str->appendScalar(fCenter2.fY); | 755 str->appendScalar(fCenter2.fY); |
| 756 str->append(") radius2: "); | 756 str->append(") radius2: "); |
| 757 str->appendScalar(fRadius2); | 757 str->appendScalar(fRadius2); |
| 758 str->append(" "); | 758 str->append(" "); |
| 759 | 759 |
| 760 this->INHERITED::toString(str); | 760 this->INHERITED::toString(str); |
| 761 | 761 |
| 762 str->append(")"); | 762 str->append(")"); |
| 763 } | 763 } |
| 764 #endif | 764 #endif |
| OLD | NEW |