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

Unified Diff: chrome/common/gpu_param_traits.h

Issue 5317007: Add flow control between renderer and GPU processes, and, on Mac OS X,... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
Index: chrome/common/gpu_param_traits.h
===================================================================
--- chrome/common/gpu_param_traits.h (revision 67289)
+++ chrome/common/gpu_param_traits.h (working copy)
@@ -31,6 +31,17 @@
GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params();
};
+
+struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params {
+ int32 renderer_id;
+ int32 render_view_id;
+ gfx::PluginWindowHandle window;
+ uint64 surface_id;
+ int32 route_id;
+ uint64 swap_buffers_count;
+
+ GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params();
+};
#endif
namespace IPC {
@@ -42,6 +53,14 @@
static bool Read(const Message* m, void** iter, param_type* p);
static void Log(const param_type& p, std::string* l);
};
+
+template <>
+struct ParamTraits<GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params> {
+ typedef GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, void** iter, param_type* p);
+ static void Log(const param_type& p, std::string* l);
+};
#endif
template <>

Powered by Google App Engine
This is Rietveld 408576698