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

 
 

bug #32629: cairo pixel snapping is broken

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

Add a New Comment Rich Markup
   

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>
Group Member

 

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

Attach Files:
   
   
Comment:
   

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code