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

Issue 53106: We need to set the clipping region of the HDC passed in to a windowless flash... (Closed)

Created:
11 years, 9 months ago by ananta
Modified:
9 years, 6 months ago
Reviewers:
jam
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

We need to set the clipping region of the HDC passed in to a windowless flash plugin instance in NPP_HandleEvent for WM_PAINT. The windowless flash plugin instance queries the clipping region of the DC and on not finding it proceeds to paint the plugin window rect, which causes unnecessary CPU spikes. This fixes bug http://code.google.com/p/chromium/issues/detail?id=8835, where the plugin process would consume CPU even when we scrolled down to the static video images. With this fix the CPU usage for windowless flash plugins is on par with Firefox. Added a uitest which validates whether the hdc passed in to HandleEvent for WM_PAINT has a valid clipping region. Bug=8835 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=12651

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 1

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -103 lines) Patch
M chrome/plugin/webplugin_proxy.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M webkit/glue/plugins/test/npapi_test_plugin.vcproj View 2 3 4 5 2 chunks +8 lines, -8 lines 0 comments Download
M webkit/glue/plugins/test/plugin_client.cc View 2 3 4 5 6 4 chunks +6 lines, -9 lines 0 comments Download
D webkit/glue/plugins/test/plugin_execute_script_delete_test.h View 1 chunk +0 lines, -28 lines 0 comments Download
D webkit/glue/plugins/test/plugin_execute_script_delete_test.cc View 1 chunk +0 lines, -58 lines 0 comments Download
A webkit/glue/plugins/test/plugin_windowless_test.h View 1 chunk +28 lines, -0 lines 0 comments Download
A webkit/glue/plugins/test/plugin_windowless_test.cc View 1 chunk +75 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
ananta
11 years, 9 months ago (2009-03-26 18:49:09 UTC) #1
jam
I assume this is already done by WebKit, which is why --in-process-plugins case doesn't need ...
11 years, 9 months ago (2009-03-26 20:09:39 UTC) #2
ananta
On 2009/03/26 20:09:39, John Abd-El-Malek wrote: > I assume this is already done by WebKit, ...
11 years, 9 months ago (2009-03-26 22:17:43 UTC) #3
jam
On 2009/03/26 22:17:43, ananta wrote: > On 2009/03/26 20:09:39, John Abd-El-Malek wrote: > > I ...
11 years, 9 months ago (2009-03-26 23:29:42 UTC) #4
ananta
On 2009/03/26 23:29:42, John Abd-El-Malek wrote: > On 2009/03/26 22:17:43, ananta wrote: > > On ...
11 years, 9 months ago (2009-03-26 23:32:17 UTC) #5
ananta
On 2009/03/26 23:32:17, ananta wrote: > On 2009/03/26 23:29:42, John Abd-El-Malek wrote: > > On ...
11 years, 9 months ago (2009-03-27 00:37:29 UTC) #6
jam
11 years, 9 months ago (2009-03-27 00:57:49 UTC) #7
lgtm

http://codereview.chromium.org/53106/diff/1014/1016
File webkit/glue/plugins/test/plugin_client.cc (right):

http://codereview.chromium.org/53106/diff/1014/1016#newcode143
Line 143: new_test = new NPAPIClient::WindowlessPluginTest(instance,
can these be put together (i.e. if (strcmp() == 0 || strcmp() == 0))

Powered by Google App Engine
This is Rietveld 408576698