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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 | 524 |
525 GR_DECLARE_EFFECT_TEST; | 525 GR_DECLARE_EFFECT_TEST; |
526 | 526 |
527 typedef GrGradientEffect INHERITED; | 527 typedef GrGradientEffect INHERITED; |
528 }; | 528 }; |
529 | 529 |
530 ///////////////////////////////////////////////////////////////////// | 530 ///////////////////////////////////////////////////////////////////// |
531 | 531 |
532 GR_DEFINE_EFFECT_TEST(GrRadialGradient); | 532 GR_DEFINE_EFFECT_TEST(GrRadialGradient); |
533 | 533 |
534 GrEffectRef* GrRadialGradient::TestCreate(SkMWCRandom* random, | 534 GrEffectRef* GrRadialGradient::TestCreate(SkRandom* random, |
535 GrContext* context, | 535 GrContext* context, |
536 const GrDrawTargetCaps&, | 536 const GrDrawTargetCaps&, |
537 GrTexture**) { | 537 GrTexture**) { |
538 SkPoint center = {random->nextUScalar1(), random->nextUScalar1()}; | 538 SkPoint center = {random->nextUScalar1(), random->nextUScalar1()}; |
539 SkScalar radius = random->nextUScalar1(); | 539 SkScalar radius = random->nextUScalar1(); |
540 | 540 |
541 SkColor colors[kMaxRandomGradientColors]; | 541 SkColor colors[kMaxRandomGradientColors]; |
542 SkScalar stopsArray[kMaxRandomGradientColors]; | 542 SkScalar stopsArray[kMaxRandomGradientColors]; |
543 SkScalar* stops = stopsArray; | 543 SkScalar* stops = stopsArray; |
544 SkShader::TileMode tm; | 544 SkShader::TileMode tm; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 str->appendScalar(fCenter.fY); | 599 str->appendScalar(fCenter.fY); |
600 str->append(") radius: "); | 600 str->append(") radius: "); |
601 str->appendScalar(fRadius); | 601 str->appendScalar(fRadius); |
602 str->append(" "); | 602 str->append(" "); |
603 | 603 |
604 this->INHERITED::toString(str); | 604 this->INHERITED::toString(str); |
605 | 605 |
606 str->append(")"); | 606 str->append(")"); |
607 } | 607 } |
608 #endif | 608 #endif |
OLD | NEW |