summaryrefslogtreecommitdiffstats
path: root/chrome/common/gpu_param_traits.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/gpu_param_traits.h')
-rw-r--r--chrome/common/gpu_param_traits.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/chrome/common/gpu_param_traits.h b/chrome/common/gpu_param_traits.h
index 2aac31a..3ebaca0 100644
--- a/chrome/common/gpu_param_traits.h
+++ b/chrome/common/gpu_param_traits.h
@@ -31,6 +31,17 @@ struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params {
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 @@ struct ParamTraits<GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params> {
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 <>