>-----Original Message----- >From: [email protected] >[mailto:[email protected]] On Behalf Of ext >Ariya Hidayat > >> How often do we really need pixel access? What canvas >functions require QPixmap::toImage? > >Everytime the web developer uses the getImageData() and/or >putImageData() of the canvas context. > >> Maybe we could find an alternative for those that doesn't >require the conversion? > >Not sure I fully understand what you mean here. > I thought you'd meant that we need toImage in something other than getImageData/putImageData. Now the picture is clearer. How often do people call getImageData / putImageData? Do we call it in QtWebkit, or is it just the page developer's choice? If it's the latter, I don't feel we should make that heuristic cache inside QPixmap and not specific to HTML canvas, as it's a problem in applications in general that I've seen many times regardless of HTML canvas. If it's the former, we should make sure we don't call getImageData/putImageData unless we really have to.
But if you come up with a solution that does this and makes everything faster - I of course won't oppose, these are just opinions :) > > >-- >Ariya Hidayat >http://www.linkedin.com/in/ariyahidayat >_______________________________________________ >webkit-qt mailing list >[email protected] >http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt > _______________________________________________ webkit-qt mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
