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 #ifndef CC_IPC_CC_PARAM_TRAITS_H_ | 7 #ifndef CC_IPC_CC_PARAM_TRAITS_H_ |
8 #define CC_IPC_CC_PARAM_TRAITS_H_ | 8 #define CC_IPC_CC_PARAM_TRAITS_H_ |
9 | 9 |
10 #include "cc/ipc/cc_ipc_export.h" | 10 #include "cc/ipc/cc_ipc_export.h" |
11 #include "cc/ipc/cc_param_traits_macros.h" | 11 #include "cc/ipc/cc_param_traits_macros.h" |
12 #include "cc/output/compositor_frame.h" | 12 #include "cc/output/compositor_frame.h" |
13 #include "cc/output/compositor_frame_ack.h" | |
14 #include "cc/output/filter_operation.h" | 13 #include "cc/output/filter_operation.h" |
15 #include "cc/quads/draw_quad.h" | 14 #include "cc/quads/draw_quad.h" |
16 #include "cc/quads/stream_video_draw_quad.h" | 15 #include "cc/quads/stream_video_draw_quad.h" |
17 #include "cc/quads/texture_draw_quad.h" | 16 #include "cc/quads/texture_draw_quad.h" |
18 #include "gpu/ipc/common/gpu_command_buffer_traits.h" | 17 #include "gpu/ipc/common/gpu_command_buffer_traits.h" |
19 #include "ipc/ipc_message_macros.h" | 18 #include "ipc/ipc_message_macros.h" |
20 | 19 |
21 namespace gfx { | 20 namespace gfx { |
22 class Transform; | 21 class Transform; |
23 } | 22 } |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 struct CC_IPC_EXPORT ParamTraits<cc::CompositorFrame> { | 85 struct CC_IPC_EXPORT ParamTraits<cc::CompositorFrame> { |
87 typedef cc::CompositorFrame param_type; | 86 typedef cc::CompositorFrame param_type; |
88 static void Write(base::Pickle* m, const param_type& p); | 87 static void Write(base::Pickle* m, const param_type& p); |
89 static bool Read(const base::Pickle* m, | 88 static bool Read(const base::Pickle* m, |
90 base::PickleIterator* iter, | 89 base::PickleIterator* iter, |
91 param_type* p); | 90 param_type* p); |
92 static void Log(const param_type& p, std::string* l); | 91 static void Log(const param_type& p, std::string* l); |
93 }; | 92 }; |
94 | 93 |
95 template <> | 94 template <> |
96 struct CC_IPC_EXPORT ParamTraits<cc::CompositorFrameAck> { | |
97 typedef cc::CompositorFrameAck param_type; | |
98 static void Write(base::Pickle* m, const param_type& p); | |
99 static bool Read(const base::Pickle* m, | |
100 base::PickleIterator* iter, | |
101 param_type* p); | |
102 static void Log(const param_type& p, std::string* l); | |
103 }; | |
104 | |
105 template <> | |
106 struct CC_IPC_EXPORT ParamTraits<cc::DelegatedFrameData> { | 95 struct CC_IPC_EXPORT ParamTraits<cc::DelegatedFrameData> { |
107 typedef cc::DelegatedFrameData param_type; | 96 typedef cc::DelegatedFrameData param_type; |
108 static void Write(base::Pickle* m, const param_type& p); | 97 static void Write(base::Pickle* m, const param_type& p); |
109 static bool Read(const base::Pickle* m, | 98 static bool Read(const base::Pickle* m, |
110 base::PickleIterator* iter, | 99 base::PickleIterator* iter, |
111 param_type* p); | 100 param_type* p); |
112 static void Log(const param_type& p, std::string* l); | 101 static void Log(const param_type& p, std::string* l); |
113 }; | 102 }; |
114 | 103 |
115 template <> | 104 template <> |
(...skipping 25 matching lines...) Expand all Loading... |
141 static void Write(base::Pickle* m, const param_type& p); | 130 static void Write(base::Pickle* m, const param_type& p); |
142 static bool Read(const base::Pickle* m, | 131 static bool Read(const base::Pickle* m, |
143 base::PickleIterator* iter, | 132 base::PickleIterator* iter, |
144 param_type* p); | 133 param_type* p); |
145 static void Log(const param_type& p, std::string* l); | 134 static void Log(const param_type& p, std::string* l); |
146 }; | 135 }; |
147 | 136 |
148 } // namespace IPC | 137 } // namespace IPC |
149 | 138 |
150 #endif // CC_IPC_CC_PARAM_TRAITS_H_ | 139 #endif // CC_IPC_CC_PARAM_TRAITS_H_ |
OLD | NEW |