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

Unified Diff: samplecode/SampleFontCache.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 | « samplecode/SampleEmptyPath.cpp ('k') | samplecode/SampleHairCurves.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleFontCache.cpp
diff --git a/samplecode/SampleFontCache.cpp b/samplecode/SampleFontCache.cpp
index 050867effaaf8769f155d7e8eb2c7347a5bd260e..c5f44577294ff80418714823a96df59c9f8c0615 100644
--- a/samplecode/SampleFontCache.cpp
+++ b/samplecode/SampleFontCache.cpp
@@ -16,7 +16,7 @@
static void call_measure() {
SkPaint paint;
uint16_t text[32];
- SkMWCRandom rand;
+ SkRandom rand;
paint.setAntiAlias(true);
paint.setTextEncoding(SkPaint::kUTF16_TextEncoding);
@@ -35,7 +35,7 @@ static void call_measure() {
static void call_draw(SkCanvas* canvas) {
SkPaint paint;
uint16_t text[32];
- SkMWCRandom rand;
+ SkRandom rand;
paint.setAntiAlias(true);
paint.setTextEncoding(SkPaint::kUTF16_TextEncoding);
« no previous file with comments | « samplecode/SampleEmptyPath.cpp ('k') | samplecode/SampleHairCurves.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698