[webkit-qt] QImage vs QPixmap as native image

Konstantin Tokarev annulen at yandex.ru
Fri Sep 13 04:12:59 PDT 2013


Hi all,

There was a patch [1] that was later reverted because of performance degradation on DirectFB, where QPixmap is hardware accelerated.

We use QtWebKit 2.3.3 with Qt 4.8 on embedded system. We have internally written gfxdriver for QWS which does not provide hardware acceleration for QPixmap's, but allows to create hardware accelerated QImage's (I know it's rather strange, but it's what we have right now).

Now I'd like to provide hardware acceleration for images in QtWebKit.  What route is better for me:
1) apply [1] again on top of QtWebKit 2.3 and use accelerated QImage's;
2) add hardware acceleration for QPixmap's (it does not seem too difficult from implementation point of view for me)?

Are there any performance advantages from using QImage with WebKit native decoders as compared to QPixmap?

[1] https://bugs.webkit.org/show_bug.cgi?id=88785

-- 
Regards,
Konstantin


More information about the webkit-qt mailing list