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 #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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 typedef gfx::Transform param_type; | 70 typedef gfx::Transform param_type; |
| 71 static void Write(Message* m, const param_type& p); | 71 static void Write(Message* m, const param_type& p); |
| 72 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 72 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| 73 static void Log(const param_type& p, std::string* l); | 73 static void Log(const param_type& p, std::string* l); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 template <> | 76 template <> |
| 77 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> { | 77 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> { |
| 78 typedef cc::RenderPass param_type; | 78 typedef cc::RenderPass param_type; |
| 79 static void Write(Message* m, const param_type& p); | 79 static void Write(Message* m, const param_type& p); |
| 80 static size_t ReserveSizeForWrite(const param_type& p); | |
|
Tom Sepez
2013/10/24 17:48:06
I'm not sure making this a method of this particul
danakj
2013/10/24 17:51:38
Alright. I wanted to keep it close to the Write()
| |
| 80 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 81 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| 81 static void Log(const param_type& p, std::string* l); | 82 static void Log(const param_type& p, std::string* l); |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 template<> | 85 template<> |
| 85 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrame> { | 86 struct CONTENT_EXPORT ParamTraits<cc::CompositorFrame> { |
| 86 typedef cc::CompositorFrame param_type; | 87 typedef cc::CompositorFrame param_type; |
| 87 static void Write(Message* m, const param_type& p); | 88 static void Write(Message* m, const param_type& p); |
| 88 static bool Read(const Message* m, PickleIterator* iter, param_type* p); | 89 static bool Read(const Message* m, PickleIterator* iter, param_type* p); |
| 89 static void Log(const param_type& p, std::string* l); | 90 static void Log(const param_type& p, std::string* l); |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 257 IPC_STRUCT_TRAITS_MEMBER(size) | 258 IPC_STRUCT_TRAITS_MEMBER(size) |
| 258 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) | 259 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) |
| 259 IPC_STRUCT_TRAITS_END() | 260 IPC_STRUCT_TRAITS_END() |
| 260 | 261 |
| 261 IPC_STRUCT_TRAITS_BEGIN(cc::SoftwareFrameData) | 262 IPC_STRUCT_TRAITS_BEGIN(cc::SoftwareFrameData) |
| 262 IPC_STRUCT_TRAITS_MEMBER(id) | 263 IPC_STRUCT_TRAITS_MEMBER(id) |
| 263 IPC_STRUCT_TRAITS_MEMBER(size) | 264 IPC_STRUCT_TRAITS_MEMBER(size) |
| 264 IPC_STRUCT_TRAITS_MEMBER(damage_rect) | 265 IPC_STRUCT_TRAITS_MEMBER(damage_rect) |
| 265 IPC_STRUCT_TRAITS_MEMBER(handle) | 266 IPC_STRUCT_TRAITS_MEMBER(handle) |
| 266 IPC_STRUCT_TRAITS_END() | 267 IPC_STRUCT_TRAITS_END() |
| OLD | NEW |