| 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 // IPC Messages sent between compositor instances. | 5 // IPC Messages sent between compositor instances. |
| 6 | 6 |
| 7 #include "cc/output/begin_frame_args.h" | 7 #include "cc/output/begin_frame_args.h" |
| 8 #include "cc/output/compositor_frame.h" | 8 #include "cc/output/compositor_frame.h" |
| 9 #include "cc/output/compositor_frame_ack.h" | 9 #include "cc/output/compositor_frame_ack.h" |
| 10 #include "cc/output/filter_operation.h" | 10 #include "cc/output/filter_operation.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 namespace cc { | 43 namespace cc { |
| 44 class FilterOperations; | 44 class FilterOperations; |
| 45 } | 45 } |
| 46 | 46 |
| 47 namespace IPC { | 47 namespace IPC { |
| 48 | 48 |
| 49 template <> | 49 template <> |
| 50 struct ParamTraits<cc::FilterOperation> { | 50 struct ParamTraits<cc::FilterOperation> { |
| 51 typedef cc::FilterOperation param_type; | 51 typedef cc::FilterOperation param_type; |
| 52 static void Write(Message* m, const param_type& p); | 52 static void Write(Message* m, const param_type& p); |
| 53 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 53 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); |
| 54 static void Log(const param_type& p, std::string* l); | 54 static void Log(const param_type& p, std::string* l); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 template <> | 57 template <> |
| 58 struct ParamTraits<cc::FilterOperations> { | 58 struct ParamTraits<cc::FilterOperations> { |
| 59 typedef cc::FilterOperations param_type; | 59 typedef cc::FilterOperations param_type; |
| 60 static void Write(Message* m, const param_type& p); | 60 static void Write(Message* m, const param_type& p); |
| 61 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 61 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); |
| 62 static void Log(const param_type& p, std::string* l); | 62 static void Log(const param_type& p, std::string* l); |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 template <> | 65 template <> |
| 66 struct ParamTraits<skia::RefPtr<SkImageFilter> > { | 66 struct ParamTraits<skia::RefPtr<SkImageFilter> > { |
| 67 typedef skia::RefPtr<SkImageFilter> param_type; | 67 typedef skia::RefPtr<SkImageFilter> param_type; |
| 68 static void Write(Message* m, const param_type& p); | 68 static void Write(Message* m, const param_type& p); |
| 69 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 69 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); |
| 70 static void Log(const param_type& p, std::string* l); | 70 static void Log(const param_type& p, std::string* l); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 template <> | 73 template <> |
| 74 struct ParamTraits<gfx::Transform> { | 74 struct ParamTraits<gfx::Transform> { |
| 75 typedef gfx::Transform param_type; | 75 typedef gfx::Transform param_type; |
| 76 static void Write(Message* m, const param_type& p); | 76 static void Write(Message* m, const param_type& p); |
| 77 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 77 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); |
| 78 static void Log(const param_type& p, std::string* l); | 78 static void Log(const param_type& p, std::string* l); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 template <> | 81 template <> |
| 82 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> { | 82 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> { |
| 83 typedef cc::RenderPass param_type; | 83 typedef cc::RenderPass param_type; |
| 84 static void Write(Message* m, const param_type& p); | 84 static void Write(Message* m, const param_type& p); |
| 85 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 85 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); |
| 86 static void Log(const param_type& p, std::string* l); | 86 static void Log(const param_type& p, std::string* l); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 template<> | 89 template<> |
| 90 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrame> { | 90 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrame> { |
| 91 typedef cc::CompositorFrame param_type; | 91 typedef cc::CompositorFrame param_type; |
| 92 static void Write(Message* m, const param_type& p); | 92 static void Write(Message* m, const param_type& p); |
| 93 static bool Read(const Message* m, PickleIterator* iter, param_type* p); | 93 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); |
| 94 static void Log(const param_type& p, std::string* l); | 94 static void Log(const param_type& p, std::string* l); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 template<> | 97 template<> |
| 98 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrameAck> { | 98 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrameAck> { |
| 99 typedef cc::CompositorFrameAck param_type; | 99 typedef cc::CompositorFrameAck param_type; |
| 100 static void Write(Message* m, const param_type& p); | 100 static void Write(Message* m, const param_type& p); |
| 101 static bool Read(const Message* m, PickleIterator* iter, param_type* p); | 101 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); |
| 102 static void Log(const param_type& p, std::string* l); | 102 static void Log(const param_type& p, std::string* l); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 template<> | 105 template<> |
| 106 struct CONTENT_EXPORT ParamTraits<cc::DelegatedFrameData> { | 106 struct CONTENT_EXPORT ParamTraits<cc::DelegatedFrameData> { |
| 107 typedef cc::DelegatedFrameData param_type; | 107 typedef cc::DelegatedFrameData param_type; |
| 108 static void Write(Message* m, const param_type& p); | 108 static void Write(Message* m, const param_type& p); |
| 109 static bool Read(const Message* m, PickleIterator* iter, param_type* p); | 109 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); |
| 110 static void Log(const param_type& p, std::string* l); | 110 static void Log(const param_type& p, std::string* l); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 template <> | 113 template <> |
| 114 struct CONTENT_EXPORT ParamTraits<cc::SoftwareFrameData> { | 114 struct CONTENT_EXPORT ParamTraits<cc::SoftwareFrameData> { |
| 115 typedef cc::SoftwareFrameData param_type; | 115 typedef cc::SoftwareFrameData param_type; |
| 116 static void Write(Message* m, const param_type& p); | 116 static void Write(Message* m, const param_type& p); |
| 117 static bool Read(const Message* m, PickleIterator* iter, param_type* p); | 117 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); |
| 118 static void Log(const param_type& p, std::string* l); | 118 static void Log(const param_type& p, std::string* l); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace IPC | 121 } // namespace IPC |
| 122 | 122 |
| 123 #endif // CONTENT_COMMON_CC_MESSAGES_H_ | 123 #endif // CONTENT_COMMON_CC_MESSAGES_H_ |
| 124 | 124 |
| 125 // Multiply-included message file, hence no include guard. | 125 // Multiply-included message file, hence no include guard. |
| 126 | 126 |
| 127 #define IPC_MESSAGE_START CCMsgStart | 127 #define IPC_MESSAGE_START CCMsgStart |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 IPC_STRUCT_TRAITS_MEMBER(latency_info) | 315 IPC_STRUCT_TRAITS_MEMBER(latency_info) |
| 316 IPC_STRUCT_TRAITS_MEMBER(satisfies_sequences) | 316 IPC_STRUCT_TRAITS_MEMBER(satisfies_sequences) |
| 317 IPC_STRUCT_TRAITS_END() | 317 IPC_STRUCT_TRAITS_END() |
| 318 | 318 |
| 319 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) | 319 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) |
| 320 IPC_STRUCT_TRAITS_MEMBER(mailbox) | 320 IPC_STRUCT_TRAITS_MEMBER(mailbox) |
| 321 IPC_STRUCT_TRAITS_MEMBER(sync_point) | 321 IPC_STRUCT_TRAITS_MEMBER(sync_point) |
| 322 IPC_STRUCT_TRAITS_MEMBER(size) | 322 IPC_STRUCT_TRAITS_MEMBER(size) |
| 323 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) | 323 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) |
| 324 IPC_STRUCT_TRAITS_END() | 324 IPC_STRUCT_TRAITS_END() |
| OLD | NEW |