diff options
author | scroggo <scroggo@google.com> | 2014-12-15 12:54:51 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-15 12:54:51 -0800 |
commit | f9d610179d7d4198b57b12d06f8d1ca09f580df3 (patch) | |
tree | d53f2e440ad0173132c5902d0b4a04c8fd5cfcf1 /gm/quadpaths.cpp | |
parent | 9a0d6d6c88b87b3d0195e5633403325b6e922b8c (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/quadpaths.cpp')
-rw-r--r-- | gm/quadpaths.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/quadpaths.cpp b/gm/quadpaths.cpp index f2c4cf1fc8..1dbb3d090c 100644 --- a/gm/quadpaths.cpp +++ b/gm/quadpaths.cpp @@ -96,7 +96,7 @@ protected: 20 * SK_Scalar1, titlePaint); - SkLCGRandom rand; + SkRandom rand; SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); canvas->save(); canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); @@ -245,7 +245,7 @@ protected: 20 * SK_Scalar1, titlePaint); - SkLCGRandom rand; + SkRandom rand; SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); canvas->save(); canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); |