[webkit-qt] GraphicsContext and Canvas

noam.rosenthal at nokia.com noam.rosenthal at nokia.com
Thu Feb 4 09:11:36 PST 2010


Typo - I meant we SHOULD make that heuristic inside Qpixmap and not specific to HTML canvas :) 

>-----Original Message-----
>From: webkit-qt-bounces at lists.webkit.org 
>[mailto:webkit-qt-bounces at lists.webkit.org] On Behalf Of 
>Rosenthal Noam (Nokia-D-Qt/RedwoodCity)
>Sent: Thursday, February 04, 2010 9:08 AM
>To: ariya.hidayat at gmail.com; webkit-qt at lists.webkit.org
>Subject: Re: [webkit-qt] GraphicsContext and Canvas
>
>>-----Original Message-----
>>From: webkit-qt-bounces at lists.webkit.org
>>[mailto:webkit-qt-bounces at lists.webkit.org] 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
>>webkit-qt at lists.webkit.org
>>http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
>>
>_______________________________________________
>webkit-qt mailing list
>webkit-qt at lists.webkit.org
>http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
>


More information about the webkit-qt mailing list