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

Issue 1613303002: Add svg path arcto (Closed)

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

Description

Add svg path arcto The arcto() used by SVG in Chrome and Android is ported here, using conics instead of cubics. The logic is a direct transposition of the WebKit code. The attached GM includes SVG that draws the same as Skia. R=reed@google.com BUG=skia:3959 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1613303002 Committed: https://skia.googlesource.com/skia/+/55d49053d1b6db42e013eb3409ffcfc7e235c685

Patch Set 1 #

Patch Set 2 : wip; chrome's version of svg arc #

Patch Set 3 : add svg arcto support natively #

Patch Set 4 : fix typos #

Patch Set 5 : fix another typo #

Patch Set 6 : remove unused variable (good catch, linux!) #

Patch Set 7 : add int-to-float (good catch, windows!) #

Total comments: 3

Patch Set 8 : use enums for arcto's sweep and largeArc params #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -4 lines) Patch
A gm/arcto.cpp View 1 2 3 4 5 6 7 1 chunk +86 lines, -0 lines 0 comments Download
M include/core/SkPath.h View 1 2 3 4 5 6 7 2 chunks +48 lines, -4 lines 0 comments Download
M src/core/SkPath.cpp View 1 2 3 4 5 6 7 1 chunk +107 lines, -0 lines 0 comments Download
M src/utils/SkParsePath.cpp View 1 2 3 4 5 6 7 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (15 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/1613303002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1613303002/80001
4 years, 11 months ago (2016-01-22 18:51:41 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Mips-Debug-Android-Trybot/builds/4772)
4 years, 11 months ago (2016-01-22 18:52:31 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1613303002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1613303002/100001
4 years, 11 months ago (2016-01-22 18:56:30 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/5586)
4 years, 11 months ago (2016-01-22 18:59:34 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1613303002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1613303002/120001
4 years, 11 months ago (2016-01-22 19:07:44 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-22 19:20:22 UTC) #18
caryclark
Please take a look.
4 years, 11 months ago (2016-01-22 19:23:32 UTC) #19
reed1
lgtm w/ request for using Direction enum in api https://codereview.chromium.org/1613303002/diff/120001/include/core/SkPath.h File include/core/SkPath.h (right): https://codereview.chromium.org/1613303002/diff/120001/include/core/SkPath.h#newcode510 include/core/SkPath.h:510: ...
4 years, 11 months ago (2016-01-22 19:39:53 UTC) #20
caryclark
https://codereview.chromium.org/1613303002/diff/120001/include/core/SkPath.h File include/core/SkPath.h (right): https://codereview.chromium.org/1613303002/diff/120001/include/core/SkPath.h#newcode510 include/core/SkPath.h:510: * @param sweep Determines if the arc should be ...
4 years, 11 months ago (2016-01-22 22:14:00 UTC) #21
reed1
I think bool parameters are difficult always, and enum parameters are much easier to read ...
4 years, 11 months ago (2016-01-22 22:46:31 UTC) #22
caryclark
On 2016/01/22 22:46:31, reed1 wrote: > I think bool parameters are difficult always, and enum ...
4 years, 11 months ago (2016-01-23 12:21:59 UTC) #23
caryclark
https://codereview.chromium.org/1613303002/diff/120001/include/core/SkPath.h File include/core/SkPath.h (right): https://codereview.chromium.org/1613303002/diff/120001/include/core/SkPath.h#newcode510 include/core/SkPath.h:510: * @param sweep Determines if the arc should be ...
4 years, 11 months ago (2016-01-23 12:53:34 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1613303002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1613303002/140001
4 years, 11 months ago (2016-01-23 12:55:59 UTC) #27
commit-bot: I haz the power
4 years, 11 months ago (2016-01-23 13:07:10 UTC) #29
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://skia.googlesource.com/skia/+/55d49053d1b6db42e013eb3409ffcfc7e235c685

Powered by Google App Engine
This is Rietveld 408576698