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

Issue 2017743002: Fix bug where SkPath will convert an arc to an oval and change the starting point. (Closed)

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

Description

Fix bug where SkPath will convert an arc to an oval and change the starting point. Adds unit tests to test the behavior of addArc to oval conversions. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2017743002 Committed: https://skia.googlesource.com/skia/+/1978ce22eb488e3f05670189ea35d9dfae6a6784

Patch Set 1 #

Patch Set 2 : whitespace #

Total comments: 8

Patch Set 3 : Address comments, improve test, fix implementation #

Total comments: 2

Patch Set 4 : add common oval check function #

Patch Set 5 : formatting #

Patch Set 6 : Use SkScalarRoundToScalar to avoid android std::round issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -5 lines) Patch
M src/core/SkPath.cpp View 1 2 3 4 5 2 chunks +15 lines, -3 lines 0 comments Download
M tests/PathTest.cpp View 1 2 3 4 4 chunks +68 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (8 generated)
bsalomon
I noticed this bug while working on the rrect/oval dir and start index change.
4 years, 6 months ago (2016-05-26 21:06:18 UTC) #3
robertphillips
lgtm https://codereview.chromium.org/2017743002/diff/20001/src/core/SkPath.cpp File src/core/SkPath.cpp (right): https://codereview.chromium.org/2017743002/diff/20001/src/core/SkPath.cpp#newcode1423 src/core/SkPath.cpp:1423: It is unfortunate we have to always do ...
4 years, 6 months ago (2016-05-27 12:12:30 UTC) #4
bsalomon
The implementation wasn't correct and the test didn't catch it. I fixed the implementation and ...
4 years, 6 months ago (2016-05-27 14:29:33 UTC) #5
robertphillips
lgtm https://codereview.chromium.org/2017743002/diff/40001/tests/PathTest.cpp File tests/PathTest.cpp (right): https://codereview.chromium.org/2017743002/diff/40001/tests/PathTest.cpp#newcode3377 tests/PathTest.cpp:3377: for (float delta : {-SK_ScalarNearlyZero, SK_ScalarNearlyZero}) { Can ...
4 years, 6 months ago (2016-05-27 15:24:59 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2017743002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2017743002/80001
4 years, 6 months ago (2016-05-27 21:14:27 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot/builds/8772)
4 years, 6 months ago (2016-05-27 21:19:59 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2017743002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2017743002/100001
4 years, 6 months ago (2016-05-31 17:25:59 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://skia.googlesource.com/skia/+/1978ce22eb488e3f05670189ea35d9dfae6a6784
4 years, 6 months ago (2016-05-31 17:42:19 UTC) #16
bsalomon
4 years, 6 months ago (2016-06-10 15:04:34 UTC) #17
Message was sent while issue was closed.
https://codereview.chromium.org/2017743002/diff/40001/tests/PathTest.cpp
File tests/PathTest.cpp (right):

https://codereview.chromium.org/2017743002/diff/40001/tests/PathTest.cpp#newc...
tests/PathTest.cpp:3377: for (float delta : {-SK_ScalarNearlyZero,
SK_ScalarNearlyZero}) {
On 2016/05/27 15:24:59, robertphillips wrote:
> Can we have a shared check_oval helper that takes and betterBeAnOval boolean?

Done.

Powered by Google App Engine
This is Rietveld 408576698