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

Unified Diff: chrome/plugin/webplugin_delegate_stub.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/common/plugin_messages_internal.h ('k') | chrome/plugin/webplugin_delegate_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/plugin/webplugin_delegate_stub.h
===================================================================
--- chrome/plugin/webplugin_delegate_stub.h (revision 2353)
+++ chrome/plugin/webplugin_delegate_stub.h (working copy)
@@ -19,7 +19,6 @@
class WebPluginProxy;
class WebPluginDelegateImpl;
struct PluginMsg_Init_Params;
-struct PluginMsg_Paint_Params;
struct PluginMsg_DidReceiveResponseParams;
class WebCursor;
@@ -57,23 +56,11 @@
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,
« no previous file with comments | « chrome/common/plugin_messages_internal.h ('k') | chrome/plugin/webplugin_delegate_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698