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

Issue 1805963002: allow one zero length dash (Closed)

Created:
4 years, 9 months ago by caryclark
Modified:
4 years, 9 months ago
Reviewers:
robertphillips, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

allow one zero length dash If the constructed stroke that represents a dash has a single dash of length zero, and the end cap is square or round, draw the cap. The old code initialized the initial dash length to zero, making it ambiguous whether the first length is zero or not. R=robertphillips@google.com BUG=583299 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1805963002 Committed: https://skia.googlesource.com/skia/+/5e1a24808415df2748822e8082e21a361362cdfe Committed: https://skia.googlesource.com/skia/+/eb75c7db3a7372de68347d0df8d58acebc33a9ad

Patch Set 1 #

Patch Set 2 : allow one zero length dash #

Total comments: 2

Patch Set 3 : use explicit bad params flag #

Total comments: 2

Patch Set 4 : fix comment #

Patch Set 5 : add another comment #

Patch Set 6 : refactor dash param validation #

Patch Set 7 : fix nonsense param test #

Patch Set 8 : allow (0,0) dash to return a nullptr patheffect #

Patch Set 9 : fix dash nanobench #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -61 lines) Patch
M bench/DashBench.cpp View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M gm/arcto.cpp View 1 1 chunk +21 lines, -0 lines 0 comments Download
M gm/dashing.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M src/effects/SkDashPathEffect.cpp View 1 2 3 4 5 5 chunks +4 lines, -10 lines 0 comments Download
M src/utils/SkDashPath.cpp View 1 2 3 4 5 4 chunks +47 lines, -36 lines 0 comments Download
M src/utils/SkDashPathPriv.h View 1 2 3 4 5 1 chunk +12 lines, -4 lines 0 comments Download
M tests/DashPathEffectTest.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -8 lines 0 comments Download

Messages

Total messages: 51 (23 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1805963002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1805963002/20001
4 years, 9 months ago (2016-03-16 17:14:48 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-16 17:32:42 UTC) #7
caryclark
this also only effects the newly added gm; ptal
4 years, 9 months ago (2016-03-16 17:48:24 UTC) #8
robertphillips
https://codereview.chromium.org/1805963002/diff/20001/src/effects/SkDashPathEffect.cpp File src/effects/SkDashPathEffect.cpp (right): https://codereview.chromium.org/1805963002/diff/20001/src/effects/SkDashPathEffect.cpp#newcode16 src/effects/SkDashPathEffect.cpp:16: : fPhase(0) Don't we use a -1 initial dash ...
4 years, 9 months ago (2016-03-16 18:01:40 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1805963002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1805963002/40001
4 years, 9 months ago (2016-03-16 18:22:16 UTC) #11
caryclark
https://codereview.chromium.org/1805963002/diff/20001/src/effects/SkDashPathEffect.cpp File src/effects/SkDashPathEffect.cpp (right): https://codereview.chromium.org/1805963002/diff/20001/src/effects/SkDashPathEffect.cpp#newcode16 src/effects/SkDashPathEffect.cpp:16: : fPhase(0) On 2016/03/16 18:01:39, robertphillips wrote: > Don't ...
4 years, 9 months ago (2016-03-16 18:45:54 UTC) #12
robertphillips
I do like it better. Do the comments in DashPathEffectTest need cleaning up too? https://codereview.chromium.org/1805963002/diff/40001/src/utils/SkDashPath.cpp ...
4 years, 9 months ago (2016-03-16 19:00:52 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-16 19:02:21 UTC) #15
caryclark
https://codereview.chromium.org/1805963002/diff/40001/src/utils/SkDashPath.cpp File src/utils/SkDashPath.cpp (right): https://codereview.chromium.org/1805963002/diff/40001/src/utils/SkDashPath.cpp#newcode226 src/utils/SkDashPath.cpp:226: On 2016/03/16 19:00:52, robertphillips wrote: > Is this comment ...
4 years, 9 months ago (2016-03-16 19:19:20 UTC) #16
robertphillips
lgtm
4 years, 9 months ago (2016-03-16 19:20:42 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1805963002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1805963002/60001
4 years, 9 months ago (2016-03-16 19:21:10 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: skia_presubmit-Trybot on client.skia.fyi (JOB_FAILED, http://build.chromium.org/p/client.skia.fyi/builders/skia_presubmit-Trybot/builds/7698)
4 years, 9 months ago (2016-03-16 19:23:21 UTC) #21
caryclark
On 2016/03/16 19:00:52, robertphillips wrote: > I do like it better. > > Do the ...
4 years, 9 months ago (2016-03-16 19:42:46 UTC) #23
caryclark
Mike, this now includes a public include change. Could you take a look?
4 years, 9 months ago (2016-03-17 14:33:38 UTC) #24
reed1
Can we move the "valid" check into the factory, and just return nullptr in that ...
4 years, 9 months ago (2016-03-17 14:51:52 UTC) #25
caryclark
4 years, 9 months ago (2016-03-17 20:38:31 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1805963002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1805963002/100001
4 years, 9 months ago (2016-03-17 20:38:50 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/7116)
4 years, 9 months ago (2016-03-17 20:43:41 UTC) #30
reed1
lgtm
4 years, 9 months ago (2016-03-17 20:49:47 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1805963002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1805963002/120001
4 years, 9 months ago (2016-03-17 21:01:08 UTC) #33
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/7118)
4 years, 9 months ago (2016-03-17 21:05:01 UTC) #35
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1805963002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1805963002/140001
4 years, 9 months ago (2016-03-18 11:32:48 UTC) #37
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-18 11:42:59 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1805963002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1805963002/140001
4 years, 9 months ago (2016-03-18 11:43:28 UTC) #42
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://skia.googlesource.com/skia/+/5e1a24808415df2748822e8082e21a361362cdfe
4 years, 9 months ago (2016-03-18 11:44:29 UTC) #44
bungeman-skia
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/1808303004/ by bungeman@google.com. ...
4 years, 9 months ago (2016-03-18 12:10:03 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1805963002/110006 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1805963002/110006
4 years, 9 months ago (2016-03-18 12:55:13 UTC) #49
commit-bot: I haz the power
4 years, 9 months ago (2016-03-18 13:04:30 UTC) #51
Message was sent while issue was closed.
Committed patchset #9 (id:110006) as
https://skia.googlesource.com/skia/+/eb75c7db3a7372de68347d0df8d58acebc33a9ad

Powered by Google App Engine
This is Rietveld 408576698