[Webkit-unassigned] [Bug 66650] [Qt] Flash in a QGraphicsWebView using OpenGL is slow

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 22 10:40:18 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=66650


Noam Rosenthal <noam.rosenthal at nokia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #104664|review?                     |review-
               Flag|                            |




--- Comment #5 from Noam Rosenthal <noam.rosenthal at nokia.com>  2011-08-22 10:40:18 PST ---
(From update of attachment 104664)
View in context: https://bugs.webkit.org/attachment.cgi?id=104664&action=review

> Source/WebCore/ChangeLog:4
> +        Plugins are drawn on QPixmap instead of X11Pixmap when OpenGL backend is used.
> +        https://bugs.webkit.org/show_bug.cgi?id=66650

Please expand about what the patch actually does.

> Source/WebCore/plugins/qt/PluginViewQt.cpp:167
> +            // Create QPixmap (to be used when paintengine is OpenGL)
> +            m_pixmap = QPixmap(m_windowRect.width(), m_windowRect.height());
> +            // Create X11 pixmap
>              if (m_drawable)
>                  XFreePixmap(QX11Info::display(), m_drawable);

So, if we're on Linux we keep two pixmaps alive all the time? Sounds memory inefficient.

> Source/WebCore/plugins/qt/PluginViewQt.cpp:288
> +    bool bUseX11Pixmap = true;

No Hungarian prefixes please :)

> Source/WebCore/plugins/qt/PluginViewQt.cpp:299
> +        qtDrawable = QPixmap::fromX11Pixmap(m_drawable, QPixmap::ExplicitlyShared);

This is cheap, but not free. Doing it for every draw is not efficient.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list