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

Side by Side Diff: chrome/common/gpu_messages.cc

Issue 6368094: -Wuninitialized fixes Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 months 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/common_param_traits.cc ('k') | chrome/common/indexed_db_param_traits.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) 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
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
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
OLDNEW
« no previous file with comments | « chrome/common/common_param_traits.cc ('k') | chrome/common/indexed_db_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698