| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef CHROME_COMMON_GPU_PARAM_TRAITS_H_ | 5 #ifndef CHROME_COMMON_GPU_PARAM_TRAITS_H_ |
| 6 #define CHROME_COMMON_GPU_PARAM_TRAITS_H_ | 6 #define CHROME_COMMON_GPU_PARAM_TRAITS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/process.h" | 10 #include "base/process.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 template <> | 66 template <> |
| 67 struct ParamTraits<GPUInfo> { | 67 struct ParamTraits<GPUInfo> { |
| 68 typedef GPUInfo param_type; | 68 typedef GPUInfo param_type; |
| 69 static void Write(Message* m, const param_type& p); | 69 static void Write(Message* m, const param_type& p); |
| 70 static bool Read(const Message* m, void** iter, param_type* p); | 70 static bool Read(const Message* m, void** iter, param_type* p); |
| 71 static void Log(const param_type& p, std::string* l); | 71 static void Log(const param_type& p, std::string* l); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 template <> | 74 template <> |
| 75 struct ParamTraits<GPUInfo::Level> { |
| 76 typedef GPUInfo::Level param_type; |
| 77 static void Write(Message* m, const param_type& p); |
| 78 static bool Read(const Message* m, void** iter, param_type* p); |
| 79 static void Log(const param_type& p, std::string* l); |
| 80 }; |
| 81 |
| 82 template <> |
| 75 struct ParamTraits<DxDiagNode> { | 83 struct ParamTraits<DxDiagNode> { |
| 76 typedef DxDiagNode param_type; | 84 typedef DxDiagNode param_type; |
| 77 static void Write(Message* m, const param_type& p); | 85 static void Write(Message* m, const param_type& p); |
| 78 static bool Read(const Message* m, void** iter, param_type* p); | 86 static bool Read(const Message* m, void** iter, param_type* p); |
| 79 static void Log(const param_type& p, std::string* l); | 87 static void Log(const param_type& p, std::string* l); |
| 80 }; | 88 }; |
| 81 | 89 |
| 82 template <> | 90 template <> |
| 83 struct ParamTraits<gpu::CommandBuffer::State> { | 91 struct ParamTraits<gpu::CommandBuffer::State> { |
| 84 typedef gpu::CommandBuffer::State param_type; | 92 typedef gpu::CommandBuffer::State param_type; |
| 85 static void Write(Message* m, const param_type& p); | 93 static void Write(Message* m, const param_type& p); |
| 86 static bool Read(const Message* m, void** iter, param_type* p); | 94 static bool Read(const Message* m, void** iter, param_type* p); |
| 87 static void Log(const param_type& p, std::string* l); | 95 static void Log(const param_type& p, std::string* l); |
| 88 }; | 96 }; |
| 89 | 97 |
| 90 template <> | 98 template <> |
| 91 struct ParamTraits<GPUCreateCommandBufferConfig> { | 99 struct ParamTraits<GPUCreateCommandBufferConfig> { |
| 92 typedef GPUCreateCommandBufferConfig param_type; | 100 typedef GPUCreateCommandBufferConfig param_type; |
| 93 static void Write(Message* m, const param_type& p); | 101 static void Write(Message* m, const param_type& p); |
| 94 static bool Read(const Message* m, void** iter, param_type* p); | 102 static bool Read(const Message* m, void** iter, param_type* p); |
| 95 static void Log(const param_type& p, std::string* l); | 103 static void Log(const param_type& p, std::string* l); |
| 96 }; | 104 }; |
| 97 | 105 |
| 98 } // namespace IPC | 106 } // namespace IPC |
| 99 | 107 |
| 100 #endif // CHROME_COMMON_GPU_PARAM_TRAITS_H_ | 108 #endif // CHROME_COMMON_GPU_PARAM_TRAITS_H_ |
| OLD | NEW |