bugGnash - The GNU Flash player - Bugs: bug #32629, cairo pixel snapping is broken


bug #32629: cairo pixel snapping is broken

Submitted by:  Bastiaan Jacques <bjacques>
Submitted on:  Mon 28 Feb 2011 09:23:27 PM UTC  
Category:  render-cairo Severity:  3 - Normal
Release:  master Status:  None
Privacy:  Public Assigned to:  Bastiaan Jacques <bjacques>
Open/Closed:  Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 28 Feb 2011 09:23:27 PM UTC, original submission:

The Cairo renderer presently implements pixel snapping in a way which converts any given set of coordinates to pixels, rounds them, and then converts them back to TWIPS (multiplied by whatever the Character provides).

Pixel snapping is used to provide shapes with sharp edges. Cairo renders rounded pixel coordinates a lot faster.

When Cairo is finally called upon to render the shape, rounding errors are introduced (for example, coordinate 83.0000001 by 199.0000001 are actually used). This slows down drawing a lot, because Cairo is designed to rendering coordinates exactly as provided.

Instead, the Cairo renderer should do what the AGG renderer does, which is to convert all the coordinates to pixel coordinates by itself, and then feed them to the graphics library.

Bastiaan Jacques <bjacques>
Project MemberIn charge of this item.


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by bjacques (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.3