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-cairoSeverity: 3 - Normal
Release: masterStatus: None
Privacy: PublicAssigned 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1