[Webkit-unassigned] [Bug 89130] avoid min and max check in Color constructor when needed.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 14 15:35:28 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=89130


arno. <arno at renevier.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #147662|                            |review?
               Flag|                            |




--- Comment #1 from arno. <arno at renevier.net>  2012-06-14 15:35:27 PST ---
Created an attachment (id=147662)
 --> (https://bugs.webkit.org/attachment.cgi?id=147662&action=review)
patch proposal

patch proposal. I get a 5% to 15% speedup in CanvasRenderingContext2D.putImageData in the gtk port. Color constructor does not seem to be called with signed char nor unsigned int, but makeRGBA is called with unsigned int. So, I still added Color constructor for char, unsigned char and unsigned int, just in case

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list