OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ppapi/proxy/ppapi_param_traits.h" | 5 #include "ppapi/proxy/ppapi_param_traits.h" |
6 | 6 |
7 #include <string.h> // For memcpy | 7 #include <string.h> // For memcpy |
8 | 8 |
9 #include "ppapi/c/pp_resource.h" | 9 #include "ppapi/c/pp_resource.h" |
10 #include "ppapi/proxy/ppapi_messages.h" | 10 #include "ppapi/proxy/ppapi_messages.h" |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 // No default so the compiler will warn on new types. | 626 // No default so the compiler will warn on new types. |
627 } | 627 } |
628 return false; | 628 return false; |
629 } | 629 } |
630 | 630 |
631 // static | 631 // static |
632 void ParamTraits<ppapi::SocketOptionData>::Log(const param_type& p, | 632 void ParamTraits<ppapi::SocketOptionData>::Log(const param_type& p, |
633 std::string* l) { | 633 std::string* l) { |
634 } | 634 } |
635 | 635 |
| 636 // ppapi::CompositorLayerData -------------------------------------------------- |
| 637 |
| 638 // static |
| 639 void ParamTraits<ppapi::CompositorLayerData::Transform>::Write( |
| 640 Message* m, |
| 641 const param_type& p) { |
| 642 for (size_t i = 0; i < arraysize(p.matrix); i++) |
| 643 ParamTraits<float>::Write(m, p.matrix[i]); |
| 644 } |
| 645 |
| 646 // static |
| 647 bool ParamTraits<ppapi::CompositorLayerData::Transform>::Read( |
| 648 const Message* m, |
| 649 PickleIterator* iter, |
| 650 param_type* r) { |
| 651 for (size_t i = 0; i < arraysize(r->matrix);i++) { |
| 652 if (!ParamTraits<float>::Read(m, iter, &r->matrix[i])) |
| 653 return false; |
| 654 } |
| 655 return true; |
| 656 } |
| 657 |
| 658 void ParamTraits<ppapi::CompositorLayerData::Transform>::Log( |
| 659 const param_type& p, |
| 660 std::string* l) { |
| 661 } |
| 662 |
636 } // namespace IPC | 663 } // namespace IPC |
OLD | NEW |