[Webkit-unassigned] [Bug 51498] Avoid decoding images twice in texImage2D

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 1 09:38:57 PDT 2011


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





--- Comment #8 from Kenneth Russell <kbr at google.com>  2011-04-01 09:38:57 PST ---
(In reply to comment #7)
> It looks like making BitmapImage::frameHasAlphaAtIndex public will work, so I'll just add CG support to this patch.
> 
> Times for doing texImage2D from 1000 images go from 5200 ms (jpeg to premultiplied), 4200 ms (jpeg to non-premultiplied), 9300 ms (png to premultiplied) and 8400 ms (png to nonpremultiplied) down to 1900ms, 2400ms, 4000ms, 8400 ms, respectively. On skia we even get a performance gain for pngs that have alpha channels but no transparent pixels, but unfortunately we can't get that gain on CG.

That's fantastic. Thanks for tracking down this horrible inefficiency.

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