Chromium Code Reviews| 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/base/filter_operation.h" | 10 #include "cc/base/filter_operation.h" |
| 11 #include "cc/ipc/cc_ipc_export.h" | 11 #include "cc/ipc/cc_ipc_export.h" |
| 12 #include "cc/ipc/cc_param_traits_macros.h" | 12 #include "cc/ipc/cc_param_traits_macros.h" |
| 13 #include "cc/output/compositor_frame.h" | 13 #include "cc/output/compositor_frame.h" |
| 14 #include "cc/quads/draw_quad.h" | 14 #include "cc/quads/draw_quad.h" |
| 15 #include "cc/quads/stream_video_draw_quad.h" | 15 #include "cc/quads/stream_video_draw_quad.h" |
| 16 #include "cc/quads/texture_draw_quad.h" | 16 #include "cc/quads/texture_draw_quad.h" |
| 17 #include "gpu/ipc/common/gpu_command_buffer_traits.h" | 17 #include "gpu/ipc/common/gpu_command_buffer_traits.h" |
| 18 #include "ipc/ipc_message_macros.h" | 18 #include "ipc/ipc_message_macros.h" |
| 19 #include "net/traffic_annotation/network_traffic_annotation.h" | |
| 19 | 20 |
| 20 namespace cc { | 21 namespace cc { |
| 21 class FilterOperations; | 22 class FilterOperations; |
| 22 } | 23 } |
| 23 | 24 |
| 24 namespace IPC { | 25 namespace IPC { |
| 25 | 26 |
| 26 template <> | 27 template <> |
| 27 struct ParamTraits<cc::FilterOperation> { | 28 struct ParamTraits<cc::FilterOperation> { |
| 28 typedef cc::FilterOperation param_type; | 29 typedef cc::FilterOperation param_type; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 146 struct CC_IPC_EXPORT ParamTraits<cc::BeginFrameAck> { | 147 struct CC_IPC_EXPORT ParamTraits<cc::BeginFrameAck> { |
| 147 typedef cc::BeginFrameAck param_type; | 148 typedef cc::BeginFrameAck param_type; |
| 148 static void GetSize(base::PickleSizer* s, const param_type& p); | 149 static void GetSize(base::PickleSizer* s, const param_type& p); |
| 149 static void Write(base::Pickle* m, const param_type& p); | 150 static void Write(base::Pickle* m, const param_type& p); |
| 150 static bool Read(const base::Pickle* m, | 151 static bool Read(const base::Pickle* m, |
| 151 base::PickleIterator* iter, | 152 base::PickleIterator* iter, |
| 152 param_type* p); | 153 param_type* p); |
| 153 static void Log(const param_type& p, std::string* l); | 154 static void Log(const param_type& p, std::string* l); |
| 154 }; | 155 }; |
| 155 | 156 |
| 157 template <> | |
| 158 struct CC_IPC_EXPORT ParamTraits<net::MutableNetworkTrafficAnnotationTag> { | |
|
yzshen1
2017/06/01 16:04:27
why some structure from net/ has its param traits
Ramin Halavati
2017/06/02 07:47:06
NetworkTrafficAnnotation describes a network reque
| |
| 159 typedef net::MutableNetworkTrafficAnnotationTag param_type; | |
| 160 static void GetSize(base::PickleSizer* s, const param_type& p); | |
| 161 static void Write(base::Pickle* m, const param_type& p); | |
| 162 static bool Read(const base::Pickle* m, | |
| 163 base::PickleIterator* iter, | |
| 164 param_type* p); | |
| 165 static void Log(const param_type& p, std::string* l); | |
| 166 }; | |
| 167 | |
| 168 template <> | |
| 169 struct CC_IPC_EXPORT | |
| 170 ParamTraits<net::MutablePartialNetworkTrafficAnnotationTag> { | |
| 171 typedef net::MutablePartialNetworkTrafficAnnotationTag param_type; | |
| 172 static void GetSize(base::PickleSizer* s, const param_type& p); | |
| 173 static void Write(base::Pickle* m, const param_type& p); | |
| 174 static bool Read(const base::Pickle* m, | |
| 175 base::PickleIterator* iter, | |
| 176 param_type* p); | |
| 177 static void Log(const param_type& p, std::string* l); | |
| 178 }; | |
| 179 | |
| 156 } // namespace IPC | 180 } // namespace IPC |
| 157 | 181 |
| 158 #endif // CC_IPC_CC_PARAM_TRAITS_H_ | 182 #endif // CC_IPC_CC_PARAM_TRAITS_H_ |
| OLD | NEW |