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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 struct ParamTraits<skia::RefPtr<SkImageFilter> > { | 69 struct ParamTraits<skia::RefPtr<SkImageFilter> > { |
70 typedef skia::RefPtr<SkImageFilter> param_type; | 70 typedef skia::RefPtr<SkImageFilter> param_type; |
71 static void Write(base::Pickle* m, const param_type& p); | 71 static void Write(base::Pickle* m, const param_type& p); |
72 static bool Read(const base::Pickle* m, | 72 static bool Read(const base::Pickle* m, |
73 base::PickleIterator* iter, | 73 base::PickleIterator* iter, |
74 param_type* r); | 74 param_type* r); |
75 static void Log(const param_type& p, std::string* l); | 75 static void Log(const param_type& p, std::string* l); |
76 }; | 76 }; |
77 | 77 |
78 template <> | 78 template <> |
79 struct ParamTraits<gfx::Transform> { | |
80 typedef gfx::Transform param_type; | |
81 static void Write(base::Pickle* m, const param_type& p); | |
82 static bool Read(const base::Pickle* m, | |
83 base::PickleIterator* iter, | |
84 param_type* r); | |
85 static void Log(const param_type& p, std::string* l); | |
86 }; | |
87 | |
88 template <> | |
89 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> { | 79 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> { |
90 typedef cc::RenderPass param_type; | 80 typedef cc::RenderPass param_type; |
91 static void Write(base::Pickle* m, const param_type& p); | 81 static void Write(base::Pickle* m, const param_type& p); |
92 static bool Read(const base::Pickle* m, | 82 static bool Read(const base::Pickle* m, |
93 base::PickleIterator* iter, | 83 base::PickleIterator* iter, |
94 param_type* r); | 84 param_type* r); |
95 static void Log(const param_type& p, std::string* l); | 85 static void Log(const param_type& p, std::string* l); |
96 }; | 86 }; |
97 | 87 |
98 template<> | 88 template<> |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 IPC_STRUCT_TRAITS_MEMBER(satisfies_sequences) | 334 IPC_STRUCT_TRAITS_MEMBER(satisfies_sequences) |
345 IPC_STRUCT_TRAITS_MEMBER(referenced_surfaces) | 335 IPC_STRUCT_TRAITS_MEMBER(referenced_surfaces) |
346 IPC_STRUCT_TRAITS_END() | 336 IPC_STRUCT_TRAITS_END() |
347 | 337 |
348 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) | 338 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) |
349 IPC_STRUCT_TRAITS_MEMBER(mailbox) | 339 IPC_STRUCT_TRAITS_MEMBER(mailbox) |
350 IPC_STRUCT_TRAITS_MEMBER(sync_token) | 340 IPC_STRUCT_TRAITS_MEMBER(sync_token) |
351 IPC_STRUCT_TRAITS_MEMBER(size) | 341 IPC_STRUCT_TRAITS_MEMBER(size) |
352 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) | 342 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) |
353 IPC_STRUCT_TRAITS_END() | 343 IPC_STRUCT_TRAITS_END() |
OLD | NEW |