Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Side by Side Diff: src/effects/gradients/SkTwoPointRadialGradient.cpp

Issue 23576015: Change old PRG to be SkLCGRandom; change new one to SkRandom (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix some spurious SkMWCRandoms Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/effects/gradients/SkTwoPointConicalGradient.cpp ('k') | src/gpu/GrAAConvexPathRenderer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/effects/gradients/SkTwoPointConicalGradient.cpp ('k') | src/gpu/GrAAConvexPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698