| 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/filter_operation.h" | 13 #include "cc/output/filter_operation.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 | 19 |
| 20 namespace gfx { | |
| 21 class Transform; | |
| 22 } | |
| 23 | |
| 24 namespace cc { | 20 namespace cc { |
| 25 class FilterOperations; | 21 class FilterOperations; |
| 26 } | 22 } |
| 27 | 23 |
| 28 namespace IPC { | 24 namespace IPC { |
| 29 | 25 |
| 30 template <> | 26 template <> |
| 31 struct ParamTraits<cc::FilterOperation> { | 27 struct ParamTraits<cc::FilterOperation> { |
| 32 typedef cc::FilterOperation param_type; | 28 typedef cc::FilterOperation param_type; |
| 33 static void GetSize(base::PickleSizer* s, const param_type& p); | 29 static void GetSize(base::PickleSizer* s, const param_type& p); |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 static void Write(base::Pickle* m, const param_type& p); | 159 static void Write(base::Pickle* m, const param_type& p); |
| 164 static bool Read(const base::Pickle* m, | 160 static bool Read(const base::Pickle* m, |
| 165 base::PickleIterator* iter, | 161 base::PickleIterator* iter, |
| 166 param_type* p); | 162 param_type* p); |
| 167 static void Log(const param_type& p, std::string* l); | 163 static void Log(const param_type& p, std::string* l); |
| 168 }; | 164 }; |
| 169 | 165 |
| 170 } // namespace IPC | 166 } // namespace IPC |
| 171 | 167 |
| 172 #endif // CC_IPC_CC_PARAM_TRAITS_H_ | 168 #endif // CC_IPC_CC_PARAM_TRAITS_H_ |
| OLD | NEW |