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

Side by Side Diff: src/effects/gradients/SkRadialGradient.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/SkLinearGradient.cpp ('k') | src/effects/gradients/SkSweepGradient.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 "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
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
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
OLDNEW
« no previous file with comments | « src/effects/gradients/SkLinearGradient.cpp ('k') | src/effects/gradients/SkSweepGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698