| 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 #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 Loading... |
| 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, 0, command_buffer_id, release_count); | 82 p->Set(namespace_id, 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 Loading... |
| 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 |
| OLD | NEW |