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

Unified Diff: gm/polygons.cpp

Issue 805963002: There can be only one (SkRandom)! (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 6 years 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/points.cpp ('k') | gm/quadpaths.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/polygons.cpp
diff --git a/gm/polygons.cpp b/gm/polygons.cpp
index 56b2e97cebdc2f420fe0439f49b3f94ce7272223..1d639780fd8f0be4dddfbfe8762bc006457d084e 100644
--- a/gm/polygons.cpp
+++ b/gm/polygons.cpp
@@ -88,7 +88,7 @@ protected:
canvas->translate(x, y);
}
- static void SetColorAndAlpha(SkPaint* paint, SkLCGRandom* rand) {
+ static void SetColorAndAlpha(SkPaint* paint, SkRandom* rand) {
SkColor color = rand->nextU();
color |= 0xff000000;
paint->setColor(color);
@@ -113,7 +113,7 @@ protected:
SkPaint paint;
paint.setAntiAlias(true);
- SkLCGRandom rand;
+ SkRandom rand;
// For stroke style painter
paint.setStyle(SkPaint::kStroke_Style);
for (int join = 0; join < kNumJoins; ++join) {
« no previous file with comments | « gm/points.cpp ('k') | gm/quadpaths.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698