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

Unified Diff: chrome/renderer/webplugin_delegate_proxy.h

Issue 3133: Desynchronize windowless plugin painting. This greatly improves the painting... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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
« no previous file with comments | « chrome/plugin/webplugin_proxy.cc ('k') | chrome/renderer/webplugin_delegate_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/webplugin_delegate_proxy.h
===================================================================
--- chrome/renderer/webplugin_delegate_proxy.h (revision 2353)
+++ chrome/renderer/webplugin_delegate_proxy.h (working copy)
@@ -10,6 +10,7 @@
#include "base/gfx/rect.h"
#include "base/ref_counted.h"
+#include "base/scoped_handle.h"
#include "chrome/common/ipc_message.h"
#include "chrome/common/plugin_messages.h"
#include "chrome/plugin/npobject_stub.h"
@@ -21,7 +22,11 @@
struct PluginHostMsg_RouteToFrame_Params;
class RenderView;
class SkBitmap;
+namespace gfx {
+class PlatformCanvasWin;
+}
+
// An implementation of WebPluginDelegate that proxies all calls to
// the plugin process.
class WebPluginDelegateProxy : public WebPluginDelegate,
@@ -142,11 +147,17 @@
// Event passed in by the plugin process and is used to decide if
// messages need to be pumped in the NPP_HandleEvent sync call.
- HANDLE modal_loop_pump_messages_event_;
+ ScopedHandle modal_loop_pump_messages_event_;
// Bitmap for crashed plugin
SkBitmap* sad_plugin_;
+ // Used for desynchronized windowless painting. See the comment in
+ // webplugin_proxy.h for information about how this works.
+ scoped_ptr<SharedMemory> windowless_buffer_;
+ scoped_ptr<gfx::PlatformCanvasWin> windowless_canvas_;
+ ScopedHandle windowless_buffer_lock_;
+
DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateProxy);
};
« no previous file with comments | « chrome/plugin/webplugin_proxy.cc ('k') | chrome/renderer/webplugin_delegate_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698