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

Issue 805963002: There can be only one (SkRandom)! (Closed)

Created:
6 years ago by scroggo
Modified:
6 years ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

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 Committed: https://skia.googlesource.com/skia/+/f9d610179d7d4198b57b12d06f8d1ca09f580df3

Patch Set 1 #

Patch Set 2 : Remove typo #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -178 lines) Patch
M expectations/gm/ignored-tests.txt View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
M gm/beziers.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M gm/circles.cpp View 1 2 2 chunks +1 line, -1 line 0 comments Download
M gm/complexclip2.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/convexpaths.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/cubicpaths.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M gm/degeneratesegments.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/emptypath.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/getpostextpath.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/hittestpath.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/linepaths.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M gm/points.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M gm/polygons.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M gm/quadpaths.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M gm/strokerects.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M gm/strokes.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M include/utils/SkRandom.h View 1 chunk +0 lines, -139 lines 0 comments Download
M src/effects/SkDiscretePathEffect.cpp View 3 chunks +46 lines, -5 lines 0 comments Download
M tests/StrokerTest.cpp View 6 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
scroggo
6 years ago (2014-12-15 19:22:00 UTC) #2
reed1
lgtm
6 years ago (2014-12-15 19:36:49 UTC) #4
jvanverth1
On 2014/12/15 19:36:49, reed1 wrote: > lgtm lgtm 2
6 years ago (2014-12-15 19:43:37 UTC) #5
scroggo
On 2014/12/15 19:43:37, jvanverth1 wrote: > On 2014/12/15 19:36:49, reed1 wrote: > > lgtm > ...
6 years ago (2014-12-15 20:12:33 UTC) #6
robertphillips
lgtm
6 years ago (2014-12-15 20:38:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/805963002/20001
6 years ago (2014-12-15 20:39:26 UTC) #9
commit-bot: I haz the power
Failed to apply patch for expectations/gm/ignored-tests.txt: While running git apply --index -3 -p1; error: patch ...
6 years ago (2014-12-15 20:39:32 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/805963002/40001
6 years ago (2014-12-15 20:44:26 UTC) #13
commit-bot: I haz the power
6 years ago (2014-12-15 20:54:56 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/f9d610179d7d4198b57b12d06f8d1ca09f580df3

Powered by Google App Engine
This is Rietveld 408576698