summaryrefslogtreecommitdiffstats
path: root/chrome/common/plugin_messages.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/common/plugin_messages.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/common/plugin_messages.h')
-rw-r--r--chrome/common/plugin_messages.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/chrome/common/plugin_messages.h b/chrome/common/plugin_messages.h
index cbe0b31..6ebead6 100644
--- a/chrome/common/plugin_messages.h
+++ b/chrome/common/plugin_messages.h
@@ -58,18 +58,6 @@ struct PluginMsg_URLRequestReply_Params {
HANDLE stream;
};
-struct PluginMsg_Paint_Params {
- gfx::Size size;
- gfx::Rect clip_rect;
- gfx::Rect damaged_rect;
-
- // Bitmap's bits.
- HANDLE shared_memory;
-
- // Information about the world transform (see GetWorldTransform).
- XFORM xf;
-};
-
struct PluginMsg_PrintResponse_Params {
HANDLE shared_memory;
size_t size;
@@ -254,39 +242,6 @@ struct ParamTraits<PluginMsg_URLRequestReply_Params> {
};
template <>
-struct ParamTraits<PluginMsg_Paint_Params> {
- typedef PluginMsg_Paint_Params param_type;
- static void Write(Message* m, const param_type& p) {
- WriteParam(m, p.size);
- WriteParam(m, p.clip_rect);
- WriteParam(m, p.damaged_rect);
- WriteParam(m, p.shared_memory);
- WriteParam(m, p.xf);
- }
- static bool Read(const Message* m, void** iter, param_type* r) {
- return
- ReadParam(m, iter, &r->size) &&
- ReadParam(m, iter, &r->clip_rect) &&
- ReadParam(m, iter, &r->damaged_rect) &&
- ReadParam(m, iter, &r->shared_memory) &&
- ReadParam(m, iter, &r->xf);
- }
- static void Log(const param_type& p, std::wstring* l) {
- l->append(L"(");
- LogParam(p.size, l);
- l->append(L", ");
- LogParam(p.clip_rect, l);
- l->append(L", ");
- LogParam(p.damaged_rect, l);
- l->append(L", ");
- LogParam(p.shared_memory, l);
- l->append(L", ");
- LogParam(p.xf, l);
- l->append(L")");
- }
-};
-
-template <>
struct ParamTraits<PluginMsg_PrintResponse_Params> {
typedef PluginMsg_PrintResponse_Params param_type;
static void Write(Message* m, const param_type& p) {