Project: skia Issues People Development process History Sign in
New issue
Advanced search Search tips
Starred by 4 users
Status: Accepted
Area: ----
Priority: Medium
Type: Defect

Sign in to add a comment
antialiased stroke-rects that are thin draw wrong
Project Member Reported by, Jun 25 2013 Back to list
if the strokeSize is < 1 in antialaising, SkScan::AntiFrameRect may draw wrongly (potentially twice on the same pixels).

SkScan::AntiFrameRect wants to draw in 3 stages:
1. skim the outer rect of the frame, computing partial coverage
2. fill in the sides/top/bottom with solid depending on how thick the stroke is
3. skim the inner rect of the frame, computing partial coverage

For thin rects, #2 is correctly skipped, but we still do #1 AND #3. We need to detect when the stroke lies wholly within 1 pixel, and just skim it once, merging the coverage of the inner and outer rect.

Project Member Comment 1 by, Dec 7 2015
Labels: Hotlist-Fixit
Project Member Comment 2 by, Feb 26 2016
will investigate
Sign in to add a comment