| 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/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" | 13 #include "gpu/command_buffer/common/value_state.h" |
| 14 | 14 |
| 15 // Generate param traits size methods. | 15 // Generate param traits size methods. |
| 16 #include "ipc/param_traits_size_macros.h" | 16 #include "ipc/param_traits_size_macros.h" |
| 17 namespace IPC { | 17 namespace IPC { |
| 18 #include "gpu/ipc/gpu_command_buffer_traits_multi.h" | 18 #include "gpu/ipc/common/gpu_command_buffer_traits_multi.h" |
| 19 } // namespace IPC | 19 } // namespace IPC |
| 20 | 20 |
| 21 // Generate param traits write methods. | 21 // Generate param traits write methods. |
| 22 #include "ipc/param_traits_write_macros.h" | 22 #include "ipc/param_traits_write_macros.h" |
| 23 namespace IPC { | 23 namespace IPC { |
| 24 #include "gpu/ipc/gpu_command_buffer_traits_multi.h" | 24 #include "gpu/ipc/common/gpu_command_buffer_traits_multi.h" |
| 25 } // namespace IPC | 25 } // namespace IPC |
| 26 | 26 |
| 27 // Generate param traits read methods. | 27 // Generate param traits read methods. |
| 28 #include "ipc/param_traits_read_macros.h" | 28 #include "ipc/param_traits_read_macros.h" |
| 29 namespace IPC { | 29 namespace IPC { |
| 30 #include "gpu/ipc/gpu_command_buffer_traits_multi.h" | 30 #include "gpu/ipc/common/gpu_command_buffer_traits_multi.h" |
| 31 } // namespace IPC | 31 } // namespace IPC |
| 32 | 32 |
| 33 // Generate param traits log methods. | 33 // Generate param traits log methods. |
| 34 #include "ipc/param_traits_log_macros.h" | 34 #include "ipc/param_traits_log_macros.h" |
| 35 namespace IPC { | 35 namespace IPC { |
| 36 #include "gpu/ipc/gpu_command_buffer_traits_multi.h" | 36 #include "gpu/ipc/common/gpu_command_buffer_traits_multi.h" |
| 37 } // namespace IPC | 37 } // namespace IPC |
| 38 | 38 |
| 39 namespace IPC { | 39 namespace IPC { |
| 40 | 40 |
| 41 void ParamTraits<gpu::CommandBuffer::State>::GetSize(base::PickleSizer* s, | 41 void ParamTraits<gpu::CommandBuffer::State>::GetSize(base::PickleSizer* s, |
| 42 const param_type& p) { | 42 const param_type& p) { |
| 43 GetParamSize(s, p.get_offset); | 43 GetParamSize(s, p.get_offset); |
| 44 GetParamSize(s, p.token); | 44 GetParamSize(s, p.token); |
| 45 GetParamSize(s, p.error); | 45 GetParamSize(s, p.error); |
| 46 GetParamSize(s, p.generation); | 46 GetParamSize(s, p.generation); |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 l->append("<ValueState ("); | 202 l->append("<ValueState ("); |
| 203 for (int value : p.int_value) | 203 for (int value : p.int_value) |
| 204 *l += base::StringPrintf("%i ", value); | 204 *l += base::StringPrintf("%i ", value); |
| 205 l->append(" int values "); | 205 l->append(" int values "); |
| 206 for (float value : p.float_value) | 206 for (float value : p.float_value) |
| 207 *l += base::StringPrintf("%f ", value); | 207 *l += base::StringPrintf("%f ", value); |
| 208 l->append(" float values)>"); | 208 l->append(" float values)>"); |
| 209 } | 209 } |
| 210 | 210 |
| 211 } // namespace IPC | 211 } // namespace IPC |
| OLD | NEW |