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

Side by Side Diff: gpu/ipc/common/gpu_command_buffer_traits.cc

Issue 1894313002: Removed implementation of CHROMIUM_subscribe_uniform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed a couple more mus/ references Created 4 years, 8 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 | « gpu/ipc/common/gpu_command_buffer_traits.h ('k') | gpu/ipc/common/gpu_messages.h » ('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 #include "gpu/ipc/common/gpu_command_buffer_traits.h" 5 #include "gpu/ipc/common/gpu_command_buffer_traits.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "gpu/command_buffer/common/command_buffer_id.h" 10 #include "gpu/command_buffer/common/command_buffer_id.h"
11 #include "gpu/command_buffer/common/mailbox_holder.h" 11 #include "gpu/command_buffer/common/mailbox_holder.h"
12 #include "gpu/command_buffer/common/sync_token.h" 12 #include "gpu/command_buffer/common/sync_token.h"
13 #include "gpu/command_buffer/common/value_state.h"
14 13
15 // Generate param traits size methods. 14 // Generate param traits size methods.
16 #include "ipc/param_traits_size_macros.h" 15 #include "ipc/param_traits_size_macros.h"
17 namespace IPC { 16 namespace IPC {
18 #include "gpu/ipc/common/gpu_command_buffer_traits_multi.h" 17 #include "gpu/ipc/common/gpu_command_buffer_traits_multi.h"
19 } // namespace IPC 18 } // namespace IPC
20 19
21 // Generate param traits write methods. 20 // Generate param traits write methods.
22 #include "ipc/param_traits_write_macros.h" 21 #include "ipc/param_traits_write_macros.h"
23 namespace IPC { 22 namespace IPC {
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 return false; 168 return false;
170 return true; 169 return true;
171 } 170 }
172 171
173 void ParamTraits<gpu::MailboxHolder>::Log(const param_type& p, std::string* l) { 172 void ParamTraits<gpu::MailboxHolder>::Log(const param_type& p, std::string* l) {
174 LogParam(p.mailbox, l); 173 LogParam(p.mailbox, l);
175 LogParam(p.sync_token, l); 174 LogParam(p.sync_token, l);
176 *l += base::StringPrintf(":%04x@", p.texture_target); 175 *l += base::StringPrintf(":%04x@", p.texture_target);
177 } 176 }
178 177
179 void ParamTraits<gpu::ValueState>::GetSize(base::PickleSizer* s,
180 const param_type& p) {
181 s->AddData(sizeof(gpu::ValueState));
182 }
183
184 void ParamTraits<gpu::ValueState>::Write(base::Pickle* m, const param_type& p) {
185 m->WriteData(reinterpret_cast<const char*>(&p),
186 sizeof(gpu::ValueState));
187 }
188
189 bool ParamTraits<gpu::ValueState>::Read(const base::Pickle* m,
190 base::PickleIterator* iter,
191 param_type* p) {
192 int length;
193 const char* data = NULL;
194 if (!iter->ReadData(&data, &length) || length != sizeof(gpu::ValueState))
195 return false;
196 DCHECK(data);
197 memcpy(p, data, sizeof(gpu::ValueState));
198 return true;
199 }
200
201 void ParamTraits<gpu::ValueState>::Log(const param_type& p, std::string* l) {
202 l->append("<ValueState (");
203 for (int value : p.int_value)
204 *l += base::StringPrintf("%i ", value);
205 l->append(" int values ");
206 for (float value : p.float_value)
207 *l += base::StringPrintf("%f ", value);
208 l->append(" float values)>");
209 }
210
211 } // namespace IPC 178 } // namespace IPC
OLDNEW
« no previous file with comments | « gpu/ipc/common/gpu_command_buffer_traits.h ('k') | gpu/ipc/common/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698