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

Issue 2426753002: break ambiguous angle sorting loop (Closed)

Created:
4 years, 2 months ago by caryclark
Modified:
4 years, 2 months ago
Reviewers:
reed1
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

break ambiguous angle sorting loop A pair of cubics may be difficult to sort if the tangents suggest one sort but the midpoints suggest a different one. When in this gray area, and when the cumulative sort of all the angles fails to resolve, reverse the sort to break the tie. Before, when tiger8 was run through the signed distance field generated directly from the path data, the simplify call might hang since the angle could not be resolved. If the endless loop is detected, and if there is no tie to break, just fail instead. TBR=reed@google.com BUG=skia:5131 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2426753002 Committed: https://skia.googlesource.com/skia/+/b36a3cd137e2b6c328854015018594bb9967e493

Patch Set 1 #

Patch Set 2 : add separate chalkboard test #

Patch Set 3 : fix linux warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -26 lines) Patch
M gyp/pathops_unittest.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/pathops/SkOpAngle.h View 5 chunks +8 lines, -3 lines 0 comments Download
M src/pathops/SkOpAngle.cpp View 6 chunks +18 lines, -10 lines 0 comments Download
M src/pathops/SkOpContour.h View 1 chunk +3 lines, -2 lines 0 comments Download
M src/pathops/SkOpSegment.h View 1 chunk +1 line, -1 line 0 comments Download
M src/pathops/SkOpSegment.cpp View 1 4 chunks +4 lines, -3 lines 0 comments Download
M src/pathops/SkPathOpsCommon.cpp View 2 chunks +8 lines, -3 lines 0 comments Download
M src/pathops/SkPathOpsDebug.h View 1 1 chunk +1 line, -1 line 0 comments Download
A tests/PathOpsChalkboardTest.cpp View 1 2 1 chunk +181 lines, -0 lines 0 comments Download
M tests/PathOpsSimplifyTest.cpp View 1 1 chunk +12 lines, -0 lines 0 comments Download
M tools/pathops_sorter.htm View 1 chunk +10 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (5 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2426753002/20001
4 years, 2 months ago (2016-10-18 14:34:57 UTC) #3
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-GCC-x86_64-Release-GN-Trybot on master.client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86_64-Release-GN-Trybot/builds/2247)
4 years, 2 months ago (2016-10-18 14:37:07 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2426753002/40001
4 years, 2 months ago (2016-10-18 14:39:51 UTC) #7
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 14:59:48 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/b36a3cd137e2b6c328854015018594bb9967e493

Powered by Google App Engine
This is Rietveld 408576698