Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Issue 3052039: If SHM pixmaps support is available, for example, Intel drivers now support t... (Closed)

Created:
10 years, 4 months ago by yuqiang.xian
Modified:
9 years, 7 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org
Visibility:
Public.

Description

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). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=55020

Patch Set 1 : '' #

Total comments: 17

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -28 lines) Patch
M chrome/plugin/webplugin_proxy.h View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/plugin/webplugin_proxy.cc View 1 2 3 chunks +49 lines, -0 lines 0 comments Download
M webkit/glue/plugins/webplugin_delegate_impl.h View 1 3 chunks +11 lines, -0 lines 0 comments Download
M webkit/glue/plugins/webplugin_delegate_impl_gtk.cc View 1 2 chunks +81 lines, -28 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Evan Martin
assigning reviewer based on a guess
10 years, 4 months ago (2010-08-03 07:37:26 UTC) #1
agl
piman: hopefully you have a good understanding of what's going on here, but it looks ...
10 years, 4 months ago (2010-08-03 16:15:16 UTC) #2
piman
http://codereview.chromium.org/3052039/diff/5001/6001 File chrome/plugin/webplugin_proxy.cc (right): http://codereview.chromium.org/3052039/diff/5001/6001#newcode571 chrome/plugin/webplugin_proxy.cc:571: delegate_->SetWindowlessBuffer(windowless_buffer); Why not pass the windowless_dib_ directly instead of ...
10 years, 4 months ago (2010-08-03 17:15:57 UTC) #3
darin (slow to review)
http://codereview.chromium.org/3052039/diff/5001/6003 File webkit/glue/plugins/webplugin_delegate_impl_gtk.cc (right): http://codereview.chromium.org/3052039/diff/5001/6003#newcode415 webkit/glue/plugins/webplugin_delegate_impl_gtk.cc:415: if (shared_memory_support_ == x11_util::SHARED_MEMORY_PIXMAP) { this is a scary ...
10 years, 4 months ago (2010-08-03 19:00:00 UTC) #4
yuqiang.xian
On 2010/08/03 16:15:16, agl wrote: > piman: hopefully you have a good understanding of what's ...
10 years, 4 months ago (2010-08-04 10:18:25 UTC) #5
yuqiang.xian
On 2010/08/03 17:15:57, piman wrote: > http://codereview.chromium.org/3052039/diff/5001/6001 > File chrome/plugin/webplugin_proxy.cc (right): > > http://codereview.chromium.org/3052039/diff/5001/6001#newcode571 > ...
10 years, 4 months ago (2010-08-04 10:34:42 UTC) #6
yuqiang.xian
On 2010/08/03 19:00:00, darin wrote: > http://codereview.chromium.org/3052039/diff/5001/6003 > File webkit/glue/plugins/webplugin_delegate_impl_gtk.cc (right): > > http://codereview.chromium.org/3052039/diff/5001/6003#newcode415 > ...
10 years, 4 months ago (2010-08-04 10:37:41 UTC) #7
piman
http://codereview.chromium.org/3052039/diff/22001/1004 File chrome/plugin/webplugin_proxy.cc (right): http://codereview.chromium.org/3052039/diff/22001/1004#newcode93 chrome/plugin/webplugin_proxy.cc:93: XFreePixmap(x11_util::GetXDisplay(), windowless_shm_pixmap_); If you have a delegate, reset its ...
10 years, 4 months ago (2010-08-04 19:11:39 UTC) #8
yuqiang.xian
Thanks for the comments, piman. On 2010/08/04 19:11:39, piman wrote: > http://codereview.chromium.org/3052039/diff/22001/1004 > File chrome/plugin/webplugin_proxy.cc ...
10 years, 4 months ago (2010-08-05 01:07:33 UTC) #9
piman
10 years, 4 months ago (2010-08-05 01:09:28 UTC) #10
LGTM. I will push as soon as possible.

Powered by Google App Engine
This is Rietveld 408576698