On 08/04/2010 03:55 AM, ext Martin Robinson wrote:
Resent from the proper address:
On Tue, Aug 3, 2010 at 6:00 PM, Martin Robinson
<martin.james.robin...@gmail.com> wrote:
I notice that Qt added imageForRendering() and felt they could not use
image() for some reason. I'd be curious if a Qt expert could weigh in on
that, since maybe with a redesign a separate call would not be needed.
I'm not a Qt expert, but just based on a quick look, it seems that
imageForRendering avoids the full QPixmap copy.
Indeed. I added it because while QPixmap is copy-on-write it will always
do a deep copy when painting is active on the pixmap.
Since we have no way to retain painter state between QPainter::end() and
QPainter::begin(), we leave the painter active at all times which leads
us to this situation.
-Kling
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev