Summary: | Strange results from tesellating a rectangle | ||
---|---|---|---|
Product: | cairo | Reporter: | Owen Taylor <otaylor> |
Component: | general | Assignee: | Carl Worth <cworth> |
Status: | RESOLVED FIXED | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | normal | ||
Priority: | high | CC: | jwatt |
Version: | 0.9.3 | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Discard empty trapezoids |
Description
Owen Taylor
2005-04-13 14:11:57 UTC
Move bugs against "cvs" version to "0.9.3" so we can remove the "cvs" version. This is inherent to the tessellation stategy of _cairo_tessellate_convex_quad(). This overhead is now avoided entirely for single simple rectangles (with a special case tessellator). Empty traps are currently skipped when extracting regions, so extra work is being done and empty trapezoids are being rendered in the cases where the entire path can be represented as a region. However we know the form of the empty trapezoids that are most likely to be generated by our tessellators and so we can simply discard them just before appending them to the array. The oddity is that adding this early check generates subtly different results, for instance the 'elbows' of dash-curve. Argubably its an improvement, but at any rate this discrepancy looks like a bug in pixman. (In reply to comment #2) > However we know the form of the empty trapezoids that > are most likely to be generated by our tessellators and so we can simply > discard them just before appending them to the array. > > The oddity is that adding this early check generates subtly different results, > for instance the 'elbows' of dash-curve. Argubably its an improvement, but at > any rate this discrepancy looks like a bug in pixman. What is "this" early check exactly? You've written some new code here, I assume? And it exposes a bug in pixman? How about sending that to the list, (and adding it to this bug report too I suppose---but the version on the list is what interests me more personally). -Carl Created attachment 19275 [details] [review] Discard empty trapezoids Here's the patch I hinted at, it looks benign though the renderering artifacts leave me questioning whether I understand empty trapezoids. (In reply to comment #4) > Here's the patch I hinted at, it looks benign though the renderering artifacts > leave me questioning whether I understand empty trapezoids. Well I solved my mystery - the issue was that for the trapezoids generated by tessellate_convex_quad() all the lines started/ended at top/bottom, which did not generalise to tessellate_polygon(). Fixed, pushed. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.