aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/getpostextpath.cpp
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@google.com>2014-12-15 12:54:51 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-15 12:54:51 -0800
commitf9d610179d7d4198b57b12d06f8d1ca09f580df3 (patch)
treed53f2e440ad0173132c5902d0b4a04c8fd5cfcf1 /gm/getpostextpath.cpp
parent9a0d6d6c88b87b3d0195e5633403325b6e922b8c (diff)
There can be only one (SkRandom)!
Remove SkLCGRandom. We already decided the new one was better, which is why we wrote the new SkRandom. Convert GMs that were using SkLCGRandom to use the improved SkRandom. Motivated by the fact that these GMs draw differently on some runs. We believe this to be a result of using the old SkLCGRandom. Add each of the tests that were using SkLCGRandom to ignore-tests.txt, since we expect they'll draw differently using SkRandom. Move a trimmed down version of SkLCGRandom into SkDiscretePathEffect. In order to preserve the old behavior, trim down SkLCGRandom to only the methods used by SkDiscretePathEffect, and hide it in SkDiscretePathEffect's cpp file. BUG=skia:3241 Review URL: https://codereview.chromium.org/805963002
Diffstat (limited to 'gm/getpostextpath.cpp')
-rw-r--r--gm/getpostextpath.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/getpostextpath.cpp b/gm/getpostextpath.cpp
index a411520258..45701071bb 100644
--- a/gm/getpostextpath.cpp
+++ b/gm/getpostextpath.cpp
@@ -56,7 +56,7 @@ protected:
SkAutoTArray<SkScalar> widths(len);
paint.getTextWidths(text, len, &widths[0]);
- SkLCGRandom rand;
+ SkRandom rand;
SkScalar x = SkIntToScalar(20);
SkScalar y = SkIntToScalar(100);
for (int i = 0; i < len; ++i) {