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

Issue 727283003: Fix yet another convexicator issue (Closed)

Created:
6 years, 1 month ago by robertphillips
Modified:
6 years, 1 month ago
Reviewers:
bsalomon, caryclark
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Fix yet another convexicator issue This CL fixes the case where a bad initial vector (i.e., nearly zero) managed to short circuit all of the convexicator's logic. The initial bad vector would become the last vector and then never get displaced. The history of this is: https://codereview.chromium.org/298973004/ Switched the convexicator to not advance the last vector when the cross product wasn't significant https://codereview.chromium.org/573763002/ Fixed a bug (crbug.com/412640) wherein a zero area path was being incorrectly categorized as convex b.c. opposite but equal vectors were not signaling concavity. BUG=433683 Committed: https://skia.googlesource.com/skia/+/f52a063dfd7883bbaa58617416a48c2be724e36b

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -1 line) Patch
M src/core/SkPath.cpp View 1 chunk +1 line, -1 line 1 comment Download
M tests/PathTest.cpp View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
robertphillips
6 years, 1 month ago (2014-11-17 19:27:58 UTC) #2
caryclark
lgtm https://codereview.chromium.org/727283003/diff/1/src/core/SkPath.cpp File src/core/SkPath.cpp (right): https://codereview.chromium.org/727283003/diff/1/src/core/SkPath.cpp#newcode2245 src/core/SkPath.cpp:2245: if (!SkScalarNearlyZero(vec.lengthSqd(), SK_ScalarNearlyZero*SK_ScalarNearlyZero)) { looks like SK_ScalarNearlyZero*SK_ScalarNearlyZero is ...
6 years, 1 month ago (2014-11-17 19:37:55 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/727283003/1
6 years, 1 month ago (2014-11-17 20:03:55 UTC) #5
commit-bot: I haz the power
6 years, 1 month ago (2014-11-17 20:11:47 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/f52a063dfd7883bbaa58617416a48c2be724e36b

Powered by Google App Engine
This is Rietveld 408576698