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

Unified Diff: chrome/common/gpu_messages.h

Issue 3067026: Initial port of accelerated compositor to Mac OS X 10.6. Reused... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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/browser/renderer_host/test/test_render_view_host.cc ('k') | chrome/common/gpu_messages_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/gpu_messages.h
===================================================================
--- chrome/common/gpu_messages.h (revision 54820)
+++ chrome/common/gpu_messages.h (working copy)
@@ -18,8 +18,69 @@
#include "gfx/size.h"
#include "gpu/command_buffer/common/command_buffer.h"
+#if defined(OS_MACOSX)
+// Parameters for the GpuHostMsg_AcceleratedSurfaceSetIOSurface
+// message, which has too many parameters to be sent with the
+// predefined IPC macros.
+struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params {
+ int32 renderer_id;
+ int32 render_view_id;
+ gfx::PluginWindowHandle window;
+ int32 width;
+ int32 height;
+ uint64 identifier;
+
+ GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params()
+ : renderer_id(0),
+ render_view_id(0),
+ window(NULL),
+ width(0),
+ height(0),
+ identifier(0) {
+ }
+};
+#endif
+
namespace IPC {
+#if defined(OS_MACOSX)
template <>
+struct ParamTraits<GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params> {
+ typedef GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params param_type;
+ static void Write(Message* m, const param_type& p) {
+ WriteParam(m, p.renderer_id);
+ WriteParam(m, p.render_view_id);
+ WriteParam(m, p.window);
+ WriteParam(m, p.width);
+ WriteParam(m, p.height);
+ WriteParam(m, p.identifier);
+ }
+ static bool Read(const Message* m, void** iter, param_type* p) {
+ return ReadParam(m, iter, &p->renderer_id) &&
+ ReadParam(m, iter, &p->render_view_id) &&
+ ReadParam(m, iter, &p->window) &&
+ ReadParam(m, iter, &p->width) &&
+ ReadParam(m, iter, &p->height) &&
+ ReadParam(m, iter, &p->identifier);
+ }
+ static void Log(const param_type& p, std::wstring* l) {
+ l->append(L"(");
+ LogParam(p.renderer_id, l);
+ l->append(L", ");
+ LogParam(p.render_view_id, l);
+ l->append(L", ");
+ LogParam(p.window, l);
+ l->append(L", ");
+ LogParam(p.width, l);
+ l->append(L", ");
+ LogParam(p.height, l);
+ l->append(L", ");
+ LogParam(p.identifier, l);
+ l->append(L")");
+ }
+};
+#endif
+
+template <>
struct ParamTraits<GPUInfo> {
typedef GPUInfo param_type;
static void Write(Message* m, const param_type& p) {
« no previous file with comments | « chrome/browser/renderer_host/test/test_render_view_host.cc ('k') | chrome/common/gpu_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698