[Webkit-unassigned] [Bug 89246] do not multiply/demultiply colors when alpha is 255

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 2 10:42:22 PDT 2012


--- Comment #15 from arno. <arno at renevier.net>  2012-08-02 10:42:21 PST ---
Actually, I discovered that skipping the calls to premultipliedARGBFromColor/colorFromPremultipliedARGB, and performing the computation inside the loop is much faster. This optimization is already performed in webkitVideoSinkRender:
This makes getImageData 10% faster, and putImageData 30% faster.

Then, if I don't perform the multiply/demultiply when alpha is 255, it's still 3%/5% slower with transparency. But with the 10%/30% previous win, overall, there is no case with performance loss.

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