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

Unified Diff: gm/roundrects.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/quadpaths.cpp ('k') | gm/strokerects.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/roundrects.cpp
diff --git a/gm/roundrects.cpp b/gm/roundrects.cpp
index c309b2a931fb8d6ee0b0adbbc8f3b2346b69aac3..3f1c49ebdd7974ae57bd6873de63b9f08d5d0e2c 100644
--- a/gm/roundrects.cpp
+++ b/gm/roundrects.cpp
@@ -126,7 +126,7 @@ protected:
}
}
- SkColor genColor(SkMWCRandom* rand) {
+ SkColor genColor(SkRandom* rand) {
SkScalar hsv[3];
hsv[0] = SkFloatToScalar(rand->nextRangeF(0.0f, 360.0f));
hsv[1] = SkFloatToScalar(rand->nextRangeF(0.75f, 1.0f));
@@ -136,7 +136,7 @@ protected:
}
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
- SkMWCRandom rand(1);
+ SkRandom rand(1);
canvas->translate(20 * SK_Scalar1, 20 * SK_Scalar1);
SkRect rect = SkRect::MakeLTRB(-20, -30, 20, 30);
SkRRect circleRect;
« no previous file with comments | « gm/quadpaths.cpp ('k') | gm/strokerects.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698