summaryrefslogtreecommitdiffstats
path: root/chrome/plugin/webplugin_delegate_stub.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-22 22:26:59 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-22 22:26:59 +0000
commit22c54fdc29f5c5952175ec4a5d0f954139f2fb75 (patch)
tree66ee6c27c6bf2eb75e3a4c3ec6cee7b7463aa4db /chrome/plugin/webplugin_delegate_stub.h
parent20ea3526d1b851a5594d7d05a472e83757df034d (diff)
downloadchromium_src-22c54fdc29f5c5952175ec4a5d0f954139f2fb75.zip
chromium_src-22c54fdc29f5c5952175ec4a5d0f954139f2fb75.tar.gz
chromium_src-22c54fdc29f5c5952175ec4a5d0f954139f2fb75.tar.bz2
Desynchronize windowless plugin painting. This greatly improves the painting
performance when there are multiple plugins, or when scrolling. Review URL: http://codereview.chromium.org/3133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2459 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin/webplugin_delegate_stub.h')
-rw-r--r--chrome/plugin/webplugin_delegate_stub.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/chrome/plugin/webplugin_delegate_stub.h b/chrome/plugin/webplugin_delegate_stub.h
index f113cb8..cb242b4 100644
--- a/chrome/plugin/webplugin_delegate_stub.h
+++ b/chrome/plugin/webplugin_delegate_stub.h
@@ -19,7 +19,6 @@ class PluginChannel;
class WebPluginProxy;
class WebPluginDelegateImpl;
struct PluginMsg_Init_Params;
-struct PluginMsg_Paint_Params;
struct PluginMsg_DidReceiveResponseParams;
class WebCursor;
@@ -58,23 +57,11 @@ class WebPluginDelegateStub : public IPC::Channel::Listener,
void OnSetFocus();
void OnHandleEvent(const NPEvent& event, bool* handled,
WebCursor* cursor);
-
- void OnPaint(const PluginMsg_Paint_Params& params);
-
void OnPrint(PluginMsg_PrintResponse_Params* params);
-
- // Paints the plugin into a buffer. It roughly does the same as OnPaint (i.e.
- // painting a plugin) except that the plugin window is always renderered into
- // an EMF buffer and that it is effective for windowed plugins too.
- void OnPaintIntoSharedMemory(const PluginMsg_Paint_Params& params,
- SharedMemoryHandle* emf_buffer, size_t* bytes);
- // Paints a windowed plugin into a device context.
- void WindowedPaint(HDC hdc, const gfx::Rect& window_rect);
- // Paints a windowless plugin into a device context.
- void WindowlessPaint(HDC hdc,
- const PluginMsg_Paint_Params& params);
void OnUpdateGeometry(const gfx::Rect& window_rect,
- const gfx::Rect& clip_rect, bool visible);
+ const gfx::Rect& clip_rect, bool visible,
+ const SharedMemoryHandle& windowless_buffer,
+ const SharedMemoryLock& lock);
void OnGetPluginScriptableObject(int* route_id, void** npobject_ptr);
void OnSendJavaScriptStream(const std::string& url,
const std::wstring& result,