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

Issue 2404403003: GrTessellator: make inverse fill types more sane. (Closed)

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

Description

GrTessellator: make inverse fill types more sane. In the screenspace AA tessellator, a path's fill types would be applied twice: once when extracting contours, and then again when filling polys. It was supposed to be forced to kWinding_FillType by the second call to mesh_to_polys(), but for hysterical reasons this parameter is unused! For kInverseWinding_FillType (the only mode where this actually caused a bug), I unwittingly papered over the problem by reversing the outer contour for the inverse fill types, and comparing against -1 instead of 1. The better fix is to actually pass a winding mode of kWinding_FillType to polys_to_triangles(), and remove the (ignored) param from mesh_to_polys(). Then we can pass a clockwise outer contour as before, and compare against 1 instead of -1. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2404403003 Committed: https://skia.googlesource.com/skia/+/7ab96e92196dd74d5b95d33c8477b256813f3046

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -7 lines) Patch
M src/gpu/GrTessellator.cpp View 6 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 18 (14 generated)
Stephen White
robertphillips@: PTAL. Thanks!
4 years, 2 months ago (2016-10-11 21:01:46 UTC) #4
robertphillips
lgtm
4 years, 2 months ago (2016-10-12 12:16:57 UTC) #14
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/2404403003/1
4 years, 2 months ago (2016-10-12 13:46:30 UTC) #16
commit-bot: I haz the power
4 years, 2 months ago (2016-10-12 13:47:46 UTC) #18
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/7ab96e92196dd74d5b95d33c8477b256813f3046

Powered by Google App Engine
This is Rietveld 408576698