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

Issue 2018613003: Filter out degenerate contours in GrConvexPolyEffect (Closed)

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

Description

Filter out degenerate contours in GrConvexPolyEffect As noticed in a downstream Firefox bug report https://bugzilla.mozilla.org/show_bug.cgi?id=1255062 If a path such as (moveTo, moveTo, lineTo, lineTo, close) is supplied, and if the non-degenerate contour is convex, the convexity test will pass, and GrConvexPolyEffect will be used. However, the path's raw points are used to build the edge list, which does not filter out degenerate contours. This may cause the polygon to fail to draw. This patch ensures that the degenerate contours are filtered out by using an iterator as the path convexity test does. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2018613003 Committed: https://skia.googlesource.com/skia/+/d15947ea4d2d0ceee797a973a90fc1e5f86772bd

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added comments and assertions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -21 lines) Patch
M src/gpu/effects/GrConvexPolyEffect.cpp View 1 2 chunks +35 lines, -21 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
lsalzman1
4 years, 7 months ago (2016-05-26 19:08:10 UTC) #4
bsalomon
Looks ok to me. https://codereview.chromium.org/2018613003/diff/1/src/gpu/effects/GrConvexPolyEffect.cpp File src/gpu/effects/GrConvexPolyEffect.cpp (right): https://codereview.chromium.org/2018613003/diff/1/src/gpu/effects/GrConvexPolyEffect.cpp#newcode275 src/gpu/effects/GrConvexPolyEffect.cpp:275: while ((verb = iter.next(pts, true, ...
4 years, 6 months ago (2016-05-27 20:30:31 UTC) #5
lsalzman1
I added both code comments and assertions as requested.
4 years, 6 months ago (2016-05-28 00:24:57 UTC) #6
bsalomon
lgtm
4 years, 6 months ago (2016-05-31 16:24:43 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2018613003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2018613003/20001
4 years, 6 months ago (2016-05-31 16:29:48 UTC) #9
commit-bot: I haz the power
4 years, 6 months ago (2016-05-31 16:46:07 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/d15947ea4d2d0ceee797a973a90fc1e5f86772bd

Powered by Google App Engine
This is Rietveld 408576698