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

Unified Diff: bench/GameBench.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 | « bench/FSRectBench.cpp ('k') | bench/GrMemoryPoolBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/GameBench.cpp
diff --git a/bench/GameBench.cpp b/bench/GameBench.cpp
index 70514947dfe32a59f62c40a791bfae414832cd85..44f92cb8e6bb131985caa4e8f41dc091607d9a4d 100644
--- a/bench/GameBench.cpp
+++ b/bench/GameBench.cpp
@@ -88,9 +88,9 @@ protected:
}
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
- SkMWCRandom scaleRand;
- SkMWCRandom transRand;
- SkMWCRandom rotRand;
+ SkRandom scaleRand;
+ SkRandom transRand;
+ SkRandom rotRand;
int width, height;
if (fUseAtlas) {
@@ -280,7 +280,7 @@ private:
// Note: the resulting atlas has transparency
void makeAtlas() {
- SkMWCRandom rand;
+ SkRandom rand;
SkColor colors[kNumAtlasedX][kNumAtlasedY];
« no previous file with comments | « bench/FSRectBench.cpp ('k') | bench/GrMemoryPoolBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698