Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: cc/ipc/cc_param_traits.h

Issue 2369793002: WIP: Propagate SurfaceID up window tree hierarchy
Patch Set: Fix input events: EventDispatcher ignores container windows Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/ipc/BUILD.gn ('k') | cc/ipc/cc_param_traits.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 struct CC_IPC_EXPORT ParamTraits<cc::RenderPass> { 64 struct CC_IPC_EXPORT ParamTraits<cc::RenderPass> {
65 typedef cc::RenderPass param_type; 65 typedef cc::RenderPass param_type;
66 static void Write(base::Pickle* m, const param_type& p); 66 static void Write(base::Pickle* m, const param_type& p);
67 static bool Read(const base::Pickle* m, 67 static bool Read(const base::Pickle* m,
68 base::PickleIterator* iter, 68 base::PickleIterator* iter,
69 param_type* r); 69 param_type* r);
70 static void Log(const param_type& p, std::string* l); 70 static void Log(const param_type& p, std::string* l);
71 }; 71 };
72 72
73 template <> 73 template <>
74 struct CC_IPC_EXPORT ParamTraits<cc::FrameSinkId> {
75 typedef cc::FrameSinkId param_type;
76 static void GetSize(base::PickleSizer* s, const param_type& p);
77 static void Write(base::Pickle* m, const param_type& p);
78 static bool Read(const base::Pickle* m,
79 base::PickleIterator* iter,
80 param_type* r);
81 static void Log(const param_type& p, std::string* l);
82 };
83
84 template <>
74 struct CC_IPC_EXPORT ParamTraits<cc::SurfaceId> { 85 struct CC_IPC_EXPORT ParamTraits<cc::SurfaceId> {
75 typedef cc::SurfaceId param_type; 86 typedef cc::SurfaceId param_type;
76 static void GetSize(base::PickleSizer* s, const param_type& p); 87 static void GetSize(base::PickleSizer* s, const param_type& p);
77 static void Write(base::Pickle* m, const param_type& p); 88 static void Write(base::Pickle* m, const param_type& p);
78 static bool Read(const base::Pickle* m, 89 static bool Read(const base::Pickle* m,
79 base::PickleIterator* iter, 90 base::PickleIterator* iter,
80 param_type* r); 91 param_type* r);
81 static void Log(const param_type& p, std::string* l); 92 static void Log(const param_type& p, std::string* l);
82 }; 93 };
83 94
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 static void Write(base::Pickle* m, const param_type& p); 152 static void Write(base::Pickle* m, const param_type& p);
142 static bool Read(const base::Pickle* m, 153 static bool Read(const base::Pickle* m,
143 base::PickleIterator* iter, 154 base::PickleIterator* iter,
144 param_type* p); 155 param_type* p);
145 static void Log(const param_type& p, std::string* l); 156 static void Log(const param_type& p, std::string* l);
146 }; 157 };
147 158
148 } // namespace IPC 159 } // namespace IPC
149 160
150 #endif // CC_IPC_CC_PARAM_TRAITS_H_ 161 #endif // CC_IPC_CC_PARAM_TRAITS_H_
OLDNEW
« no previous file with comments | « cc/ipc/BUILD.gn ('k') | cc/ipc/cc_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698