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

Unified Diff: gm/ovals.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/nested.cpp ('k') | gm/points.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/ovals.cpp
diff --git a/gm/ovals.cpp b/gm/ovals.cpp
old mode 100755
new mode 100644
index ae727b9ef30249f05373eec67b227420114a4bc6..96e04885e3e7e5eda82849fa20a8d368be404acd
--- a/gm/ovals.cpp
+++ b/gm/ovals.cpp
@@ -125,7 +125,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));
@@ -135,7 +135,7 @@ protected:
}
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
- SkMWCRandom rand(1);
+ SkRandom rand(1);
canvas->translate(20 * SK_Scalar1, 20 * SK_Scalar1);
SkRect oval = SkRect::MakeLTRB(-20, -30, 20, 30);
« no previous file with comments | « gm/nested.cpp ('k') | gm/points.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698