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

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

Issue 2173563002: Improve GL shader YUV adjustment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use enum hack Created 4 years, 4 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 | « no previous file | cc/ipc/cc_param_traits.cc » ('j') | cc/ipc/cc_param_traits.cc » ('J')
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 struct CC_IPC_EXPORT ParamTraits<cc::TextureDrawQuad::OverlayResources> { 127 struct CC_IPC_EXPORT ParamTraits<cc::TextureDrawQuad::OverlayResources> {
128 typedef cc::TextureDrawQuad::OverlayResources param_type; 128 typedef cc::TextureDrawQuad::OverlayResources param_type;
129 static void GetSize(base::PickleSizer* s, const param_type& p); 129 static void GetSize(base::PickleSizer* s, const param_type& p);
130 static void Write(base::Pickle* m, const param_type& p); 130 static void Write(base::Pickle* m, const param_type& p);
131 static bool Read(const base::Pickle* m, 131 static bool Read(const base::Pickle* m,
132 base::PickleIterator* iter, 132 base::PickleIterator* iter,
133 param_type* p); 133 param_type* p);
134 static void Log(const param_type& p, std::string* l); 134 static void Log(const param_type& p, std::string* l);
135 }; 135 };
136 136
137 template <>
138 struct CC_IPC_EXPORT ParamTraits<cc::YUVVideoDrawQuad> {
139 typedef cc::YUVVideoDrawQuad param_type;
140 static void GetSize(base::PickleSizer* s, const param_type& p);
141 static void Write(base::Pickle* m, const param_type& p);
142 static bool Read(const base::Pickle* m,
143 base::PickleIterator* iter,
144 param_type* p);
145 static void Log(const param_type& p, std::string* l);
146 };
147
137 } // namespace IPC 148 } // namespace IPC
138 149
139 #endif // CC_IPC_CC_PARAM_TRAITS_H_ 150 #endif // CC_IPC_CC_PARAM_TRAITS_H_
OLDNEW
« no previous file with comments | « no previous file | cc/ipc/cc_param_traits.cc » ('j') | cc/ipc/cc_param_traits.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698