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

Unified Diff: gm/circles.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/beziereffects.cpp ('k') | gm/complexclip2.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/circles.cpp
diff --git a/gm/circles.cpp b/gm/circles.cpp
index f57463954cac7835dc1a8573a8c95be479307e13..3cd07f29a1d1b69b71eeed4297ab0a208d35b5a0 100644
--- a/gm/circles.cpp
+++ b/gm/circles.cpp
@@ -152,9 +152,8 @@ protected:
}
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
- SkRandom rand;
+ SkLCGRandom rand;
canvas->translate(20 * SK_Scalar1, 20 * SK_Scalar1);
-
int i;
for (i = 0; i < fPaints.count(); ++i) {
canvas->save();
@@ -206,3 +205,4 @@ static GM* MyFactory(void*) { return new CircleGM; }
static GMRegistry reg(MyFactory);
}
+
« no previous file with comments | « gm/beziereffects.cpp ('k') | gm/complexclip2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698