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 #include "base/string_piece.h" | 5 #include "base/string_piece.h" |
6 #include "base/sys_string_conversions.h" | 6 #include "base/sys_string_conversions.h" |
7 #include "chrome/common/gpu_create_command_buffer_config.h" | 7 #include "chrome/common/gpu_create_command_buffer_config.h" |
8 #include "chrome/common/gpu_info.h" | 8 #include "chrome/common/gpu_info.h" |
9 #include "chrome/common/dx_diag_node.h" | 9 #include "chrome/common/dx_diag_node.h" |
10 #include "gfx/rect.h" | 10 #include "gfx/rect.h" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 WriteParam(m, p.gl_renderer()); | 142 WriteParam(m, p.gl_renderer()); |
143 WriteParam(m, p.gl_extensions()); | 143 WriteParam(m, p.gl_extensions()); |
144 WriteParam(m, p.can_lose_context()); | 144 WriteParam(m, p.can_lose_context()); |
145 | 145 |
146 #if defined(OS_WIN) | 146 #if defined(OS_WIN) |
147 ParamTraits<DxDiagNode> ::Write(m, p.dx_diagnostics()); | 147 ParamTraits<DxDiagNode> ::Write(m, p.dx_diagnostics()); |
148 #endif | 148 #endif |
149 } | 149 } |
150 | 150 |
151 bool ParamTraits<GPUInfo> ::Read(const Message* m, void** iter, param_type* p) { | 151 bool ParamTraits<GPUInfo> ::Read(const Message* m, void** iter, param_type* p) { |
152 int32 level; | 152 int32 level = 0; // clang pr9122 |
153 base::TimeDelta initialization_time; | 153 base::TimeDelta initialization_time; |
154 uint32 vendor_id; | 154 uint32 vendor_id = 0; // clang pr9122 |
155 uint32 device_id; | 155 uint32 device_id = 0; // clang pr9122 |
156 std::string driver_vendor; | 156 std::string driver_vendor; |
157 std::string driver_version; | 157 std::string driver_version; |
158 uint32 pixel_shader_version; | 158 uint32 pixel_shader_version = 0; // clang pr9122 |
159 uint32 vertex_shader_version; | 159 uint32 vertex_shader_version = 0; // clang pr9122 |
160 uint32 gl_version; | 160 uint32 gl_version = 0; // clang pr9122 |
161 std::string gl_version_string; | 161 std::string gl_version_string; |
162 std::string gl_vendor; | 162 std::string gl_vendor; |
163 std::string gl_renderer; | 163 std::string gl_renderer; |
164 std::string gl_extensions; | 164 std::string gl_extensions; |
165 bool can_lose_context; | 165 bool can_lose_context = false; // clang pr9122 |
166 bool ret = ReadParam(m, iter, &level); | 166 bool ret = ReadParam(m, iter, &level); |
167 ret = ret && ReadParam(m, iter, &initialization_time); | 167 ret = ret && ReadParam(m, iter, &initialization_time); |
168 ret = ret && ReadParam(m, iter, &vendor_id); | 168 ret = ret && ReadParam(m, iter, &vendor_id); |
169 ret = ret && ReadParam(m, iter, &device_id); | 169 ret = ret && ReadParam(m, iter, &device_id); |
170 ret = ret && ReadParam(m, iter, &driver_vendor); | 170 ret = ret && ReadParam(m, iter, &driver_vendor); |
171 ret = ret && ReadParam(m, iter, &driver_version); | 171 ret = ret && ReadParam(m, iter, &driver_version); |
172 ret = ret && ReadParam(m, iter, &pixel_shader_version); | 172 ret = ret && ReadParam(m, iter, &pixel_shader_version); |
173 ret = ret && ReadParam(m, iter, &vertex_shader_version); | 173 ret = ret && ReadParam(m, iter, &vertex_shader_version); |
174 ret = ret && ReadParam(m, iter, &gl_version); | 174 ret = ret && ReadParam(m, iter, &gl_version); |
175 ret = ret && ReadParam(m, iter, &gl_version_string); | 175 ret = ret && ReadParam(m, iter, &gl_version_string); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 } | 267 } |
268 return true; | 268 return true; |
269 } | 269 } |
270 | 270 |
271 void ParamTraits<GPUCreateCommandBufferConfig> ::Log( | 271 void ParamTraits<GPUCreateCommandBufferConfig> ::Log( |
272 const param_type& p, std::string* l) { | 272 const param_type& p, std::string* l) { |
273 l->append("<GPUCreateCommandBufferConfig>"); | 273 l->append("<GPUCreateCommandBufferConfig>"); |
274 } | 274 } |
275 | 275 |
276 } // namespace IPC | 276 } // namespace IPC |
OLD | NEW |