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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 struct ParamTraits<cc::FilterOperations> { | 60 struct ParamTraits<cc::FilterOperations> { |
61 typedef cc::FilterOperations param_type; | 61 typedef cc::FilterOperations param_type; |
62 static void Write(base::Pickle* m, const param_type& p); | 62 static void Write(base::Pickle* m, const param_type& p); |
63 static bool Read(const base::Pickle* m, | 63 static bool Read(const base::Pickle* m, |
64 base::PickleIterator* iter, | 64 base::PickleIterator* iter, |
65 param_type* r); | 65 param_type* r); |
66 static void Log(const param_type& p, std::string* l); | 66 static void Log(const param_type& p, std::string* l); |
67 }; | 67 }; |
68 | 68 |
69 template <> | 69 template <> |
70 struct ParamTraits<skia::RefPtr<SkImageFilter> > { | 70 struct ParamTraits<sk_sp<SkImageFilter> > { |
71 typedef skia::RefPtr<SkImageFilter> param_type; | 71 typedef sk_sp<SkImageFilter> param_type; |
72 static void Write(base::Pickle* m, const param_type& p); | 72 static void Write(base::Pickle* m, const param_type& p); |
73 static bool Read(const base::Pickle* m, | 73 static bool Read(const base::Pickle* m, |
74 base::PickleIterator* iter, | 74 base::PickleIterator* iter, |
75 param_type* r); | 75 param_type* r); |
76 static void Log(const param_type& p, std::string* l); | 76 static void Log(const param_type& p, std::string* l); |
77 }; | 77 }; |
78 | 78 |
79 template <> | 79 template <> |
80 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> { | 80 struct CONTENT_EXPORT ParamTraits<cc::RenderPass> { |
81 typedef cc::RenderPass param_type; | 81 typedef cc::RenderPass param_type; |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 IPC_STRUCT_TRAITS_MEMBER(satisfies_sequences) | 335 IPC_STRUCT_TRAITS_MEMBER(satisfies_sequences) |
336 IPC_STRUCT_TRAITS_MEMBER(referenced_surfaces) | 336 IPC_STRUCT_TRAITS_MEMBER(referenced_surfaces) |
337 IPC_STRUCT_TRAITS_END() | 337 IPC_STRUCT_TRAITS_END() |
338 | 338 |
339 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) | 339 IPC_STRUCT_TRAITS_BEGIN(cc::GLFrameData) |
340 IPC_STRUCT_TRAITS_MEMBER(mailbox) | 340 IPC_STRUCT_TRAITS_MEMBER(mailbox) |
341 IPC_STRUCT_TRAITS_MEMBER(sync_token) | 341 IPC_STRUCT_TRAITS_MEMBER(sync_token) |
342 IPC_STRUCT_TRAITS_MEMBER(size) | 342 IPC_STRUCT_TRAITS_MEMBER(size) |
343 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) | 343 IPC_STRUCT_TRAITS_MEMBER(sub_buffer_rect) |
344 IPC_STRUCT_TRAITS_END() | 344 IPC_STRUCT_TRAITS_END() |
OLD | NEW |