Index: ui/gfx/ipc/gfx_param_traits.cc |
diff --git a/ui/gfx/ipc/gfx_param_traits.cc b/ui/gfx/ipc/gfx_param_traits.cc |
index b72a358b6b8a199567aa0a68b7c17769b6988eaa..50bc75765c89376827fcf70a0c63b159cdd586cb 100644 |
--- a/ui/gfx/ipc/gfx_param_traits.cc |
+++ b/ui/gfx/ipc/gfx_param_traits.cc |
@@ -17,6 +17,12 @@ |
namespace IPC { |
+void ParamTraits<gfx::Range>::GetSize(base::PickleSizer* s, |
+ const gfx::Range& p) { |
+ s->AddUInt32(); |
dcheng
2016/05/11 17:39:12
Would it make sense to add a ParamTraits::GetSize
jam
2016/05/11 17:57:02
GetParamSize already works. Switched this and othe
|
+ s->AddUInt32(); |
+} |
+ |
void ParamTraits<gfx::Range>::Write(base::Pickle* m, const gfx::Range& r) { |
m->WriteUInt32(r.start()); |
m->WriteUInt32(r.end()); |
@@ -38,6 +44,12 @@ void ParamTraits<gfx::Range>::Log(const gfx::Range& r, std::string* l) { |
} |
#if defined(OS_MACOSX) && !defined(OS_IOS) |
+void ParamTraits<gfx::ScopedRefCountedIOSurfaceMachPort>::GetSize( |
+ base::PickleSizer* s, const param_type& p) { |
+ MachPortMac mach_port_mac(p.get()); |
+ GetParamSize(s, mach_port_mac); |
+} |
+ |
void ParamTraits<gfx::ScopedRefCountedIOSurfaceMachPort>::Write( |
base::Pickle* m, |
const param_type p) { |
@@ -66,6 +78,13 @@ void ParamTraits<gfx::ScopedRefCountedIOSurfaceMachPort>::Log( |
} // namespace IPC |
+// Generate param traits size methods. |
+#include "ipc/param_traits_size_macros.h" |
+namespace IPC { |
+#undef UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_ |
+#include "ui/gfx/ipc/gfx_param_traits_macros.h" |
+} |
+ |
// Generate param traits write methods. |
#include "ipc/param_traits_write_macros.h" |
namespace IPC { |