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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 | 476 |
477 // @} | 477 // @} |
478 | 478 |
479 typedef GrGradientEffect INHERITED; | 479 typedef GrGradientEffect INHERITED; |
480 }; | 480 }; |
481 | 481 |
482 ///////////////////////////////////////////////////////////////////// | 482 ///////////////////////////////////////////////////////////////////// |
483 | 483 |
484 GR_DEFINE_EFFECT_TEST(GrRadial2Gradient); | 484 GR_DEFINE_EFFECT_TEST(GrRadial2Gradient); |
485 | 485 |
486 GrEffectRef* GrRadial2Gradient::TestCreate(SkMWCRandom* random, | 486 GrEffectRef* GrRadial2Gradient::TestCreate(SkRandom* random, |
487 GrContext* context, | 487 GrContext* context, |
488 const GrDrawTargetCaps&, | 488 const GrDrawTargetCaps&, |
489 GrTexture**) { | 489 GrTexture**) { |
490 SkPoint center1 = {random->nextUScalar1(), random->nextUScalar1()}; | 490 SkPoint center1 = {random->nextUScalar1(), random->nextUScalar1()}; |
491 SkScalar radius1 = random->nextUScalar1(); | 491 SkScalar radius1 = random->nextUScalar1(); |
492 SkPoint center2; | 492 SkPoint center2; |
493 SkScalar radius2; | 493 SkScalar radius2; |
494 do { | 494 do { |
495 center2.set(random->nextUScalar1(), random->nextUScalar1()); | 495 center2.set(random->nextUScalar1(), random->nextUScalar1()); |
496 radius2 = random->nextUScalar1 (); | 496 radius2 = random->nextUScalar1 (); |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 } | 708 } |
709 | 709 |
710 #else | 710 #else |
711 | 711 |
712 GrEffectRef* SkTwoPointRadialGradient::asNewEffect(GrContext*, const SkPaint&) c
onst { | 712 GrEffectRef* SkTwoPointRadialGradient::asNewEffect(GrContext*, const SkPaint&) c
onst { |
713 SkDEBUGFAIL("Should not call in GPU-less build"); | 713 SkDEBUGFAIL("Should not call in GPU-less build"); |
714 return NULL; | 714 return NULL; |
715 } | 715 } |
716 | 716 |
717 #endif | 717 #endif |
OLD | NEW |