I'm confused why a special method is needed though. Can't image() just avoid the full copy? Given how we use image() in WebKit, I don't think there's any reason to be concerned if image() continues to reflect the contents of the ImageBuffer. I think we should just switch to that model for the CG port also anyway, since I'm unconvinced we're truly avoiding a copy, and return an image with a custom data provider that feeds the current contents of the ImageBuffer to the image.
dave (hy...@apple.com) On Aug 3, 2010, at 8:55 PM, 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. Christophe, > when you open a bug for this issue, please CC me, as I have a > small patch in my tree which has the same imageForRendering > pecialization, but for Cairo. > > Martin > _______________________________________________ > webkit-dev mailing list > webkit-dev@lists.webkit.org > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev _______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev