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

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

Issue 1489573003: Added an extra sync token field for extra command buffer identification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Return False on invalid stream id Created 5 years 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/gles2_conform_support/egl/display.cc ('k') | media/base/video_frame_unittest.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 #include "gpu/ipc/gpu_command_buffer_traits.h" 5 #include "gpu/ipc/gpu_command_buffer_traits.h"
6 6
7 #include "gpu/command_buffer/common/mailbox_holder.h" 7 #include "gpu/command_buffer/common/mailbox_holder.h"
8 #include "gpu/command_buffer/common/sync_token.h" 8 #include "gpu/command_buffer/common/sync_token.h"
9 #include "gpu/command_buffer/common/value_state.h" 9 #include "gpu/command_buffer/common/value_state.h"
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 uint64_t command_buffer_id = 0; 72 uint64_t command_buffer_id = 0;
73 uint64_t release_count = 0; 73 uint64_t release_count = 0;
74 74
75 if (!ReadParam(m, iter, &verified_flush) || 75 if (!ReadParam(m, iter, &verified_flush) ||
76 !ReadParam(m, iter, &namespace_id) || 76 !ReadParam(m, iter, &namespace_id) ||
77 !ReadParam(m, iter, &command_buffer_id) || 77 !ReadParam(m, iter, &command_buffer_id) ||
78 !ReadParam(m, iter, &release_count)) { 78 !ReadParam(m, iter, &release_count)) {
79 return false; 79 return false;
80 } 80 }
81 81
82 p->Set(namespace_id, command_buffer_id, release_count); 82 p->Set(namespace_id, 0, command_buffer_id, release_count);
83 if (p->HasData()) { 83 if (p->HasData()) {
84 if (!verified_flush) 84 if (!verified_flush)
85 return false; 85 return false;
86 p->SetVerifyFlush(); 86 p->SetVerifyFlush();
87 } 87 }
88 88
89 return true; 89 return true;
90 } 90 }
91 91
92 void ParamTraits<gpu::SyncToken>::Log(const param_type& p, std::string* l) { 92 void ParamTraits<gpu::SyncToken>::Log(const param_type& p, std::string* l) {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 l->append("<ValueState ("); 158 l->append("<ValueState (");
159 for (int value : p.int_value) 159 for (int value : p.int_value)
160 *l += base::StringPrintf("%i ", value); 160 *l += base::StringPrintf("%i ", value);
161 l->append(" int values "); 161 l->append(" int values ");
162 for (float value : p.float_value) 162 for (float value : p.float_value)
163 *l += base::StringPrintf("%f ", value); 163 *l += base::StringPrintf("%f ", value);
164 l->append(" float values)>"); 164 l->append(" float values)>");
165 } 165 }
166 166
167 } // namespace IPC 167 } // namespace IPC
OLDNEW
« no previous file with comments | « gpu/gles2_conform_support/egl/display.cc ('k') | media/base/video_frame_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698