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

Side by Side Diff: src/effects/gradients/SkTwoPointConicalGradient.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
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 "SkTwoPointConicalGradient.h" 9 #include "SkTwoPointConicalGradient.h"
10 10
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/effects/gradients/SkSweepGradient.cpp ('k') | src/effects/gradients/SkTwoPointRadialGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698