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

Unified Diff: chrome/renderer/webplugin_delegate_proxy.cc

Issue 18082: Improve scrolling performance when there are many windowed plugins in a page.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Call DestroyWindow on the right thread & ensure NPP_SetWindow is called right away Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/webplugin_delegate_proxy.cc
===================================================================
--- chrome/renderer/webplugin_delegate_proxy.cc (revision 8043)
+++ chrome/renderer/webplugin_delegate_proxy.cc (working copy)
@@ -152,7 +152,6 @@
windowless_(false),
npobject_(NULL),
send_deferred_update_geometry_(false),
- visible_(false),
sad_plugin_(NULL),
window_script_object_(NULL),
transparent_(false),
@@ -196,8 +195,6 @@
Send(new PluginMsg_UpdateGeometry(instance_id_,
plugin_rect_,
deferred_clip_rect_,
- deferred_cutout_rects_,
- visible_,
NULL,
NULL));
}
@@ -350,14 +347,10 @@
void WebPluginDelegateProxy::UpdateGeometry(
const gfx::Rect& window_rect,
- const gfx::Rect& clip_rect,
- const std::vector<gfx::Rect>& cutout_rects,
- bool visible) {
+ const gfx::Rect& clip_rect) {
plugin_rect_ = window_rect;
if (!windowless_) {
deferred_clip_rect_ = clip_rect;
- deferred_cutout_rects_ = cutout_rects;
- visible_ = visible;
send_deferred_update_geometry_ = true;
return;
}
@@ -387,7 +380,7 @@
}
IPC::Message* msg = new PluginMsg_UpdateGeometry(
- instance_id_, window_rect, clip_rect, cutout_rects, visible,
+ instance_id_, window_rect, clip_rect,
transport_store_handle, background_store_handle);
msg->set_unblock(true);
Send(msg);

Powered by Google App Engine
This is Rietveld 408576698