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

Issue 784593002: add convexity logic and tests for scalar max, Inf, and NaN (Closed)

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

Description

add convexity logic and tests for scalar max, Inf, and NaN PathOps relies on isConvex() only returning true for trivially convex paths. The old logic also returns true if the paths that contain NaNs and Infinities. Return kUnknown_Convexity instead in those cases and in cases where the convexity logic computes intermediaries that overflow. Committed: https://skia.googlesource.com/skia/+/d3d1a988b1ed144b0123dbe594c3a47a63d6451d

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -5 lines) Patch
M src/core/SkPath.cpp View 7 chunks +18 lines, -3 lines 1 comment Download
M tests/PathTest.cpp View 3 chunks +84 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
caryclark
6 years ago (2014-12-05 20:08:40 UTC) #2
bsalomon
https://codereview.chromium.org/784593002/diff/1/src/core/SkPath.cpp File src/core/SkPath.cpp (right): https://codereview.chromium.org/784593002/diff/1/src/core/SkPath.cpp#newcode2248 src/core/SkPath.cpp:2248: fIsFinite = false; Do we need to track fIsFinite ...
6 years ago (2014-12-05 20:23:46 UTC) #3
bsalomon
lgtm
6 years ago (2014-12-05 20:40:26 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/784593002/1
6 years ago (2014-12-08 12:48:56 UTC) #6
commit-bot: I haz the power
6 years ago (2014-12-08 12:57:47 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/d3d1a988b1ed144b0123dbe594c3a47a63d6451d

Powered by Google App Engine
This is Rietveld 408576698