If SHM pixmaps support is available, for example, Intel drivers now support that
(http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/?id=4b7142baa0b3bf6f38843d06aadc579d8624cefc), use SHM pixmaps support to accelerate windowless plugin painting. Modify WindowlessPaint to directly use Xlib interfaces for SHM pixmaps support, similarly to the way how backing_store_x handles different SHM support levels provided by X server. BUG=50912 TEST=Open the page "http://disney.go.com/official-sites/demi-lovato/albums" using Chromium browser, compare the CPU usage of browser and X server before and after the change, and confirm CPU usage is reduced with this change (for example, on an Atom N450 Netbook with MeeGo 1.0 and Chromium browser 6.0.417.0 there's >30% CPU usage reduction, especially X server CPU usage is reduced by half). Review URL: http://codereview.chromium.org/3052039 Patch from Yuqiang Xian <yuqiang.xian@intel.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55020 0039d316-1c4b-4281-b951-d872f2087c98
Showing
- chrome/plugin/webplugin_proxy.cc 49 additions, 0 deletionschrome/plugin/webplugin_proxy.cc
- chrome/plugin/webplugin_proxy.h 7 additions, 0 deletionschrome/plugin/webplugin_proxy.h
- webkit/glue/plugins/webplugin_delegate_impl.h 11 additions, 0 deletionswebkit/glue/plugins/webplugin_delegate_impl.h
- webkit/glue/plugins/webplugin_delegate_impl_gtk.cc 81 additions, 28 deletionswebkit/glue/plugins/webplugin_delegate_impl_gtk.cc
Please register or sign in to comment