Index: mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl |
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl |
index fe25553846ccb00911dd711936e4a04398194d05..24cc76725aec0243bfcfcaccccb4814d6dafa02f 100644 |
--- a/mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl |
+++ b/mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl |
@@ -17,10 +17,11 @@ void Serialize_({{struct.name}}Ptr input, mojo::internal::Buffer* buf, |
} |
void Deserialize_(internal::{{struct.name}}_Data* input, |
- {{struct.name}}Ptr* output) { |
+ {{struct.name}}Ptr* output, |
+ mojo::internal::SerializationContext* context) { |
if (input) { |
{{struct.name}}Ptr result({{struct.name}}::New()); |
- {{struct_macros.deserialize(struct, "input", "result->%s")|indent(2)}} |
+ {{struct_macros.deserialize(struct, "input", "result->%s", "context")|indent(2)}} |
*output = result.Pass(); |
} else { |
output->reset(); |