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

Side by Side Diff: chrome/common/child_process_logging_mac.mm

Issue 10389051: Change GPUInfo to handle multiple GPUs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/browser/ui/webui/flash_ui.cc ('k') | chrome/common/child_process_logging_posix.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) 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 "chrome/common/child_process_logging.h" 5 #include "chrome/common/child_process_logging.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void SetGpuKeyValue(const char* param_name, const std::string& value_str, 135 void SetGpuKeyValue(const char* param_name, const std::string& value_str,
136 SetCrashKeyValueFuncPtr set_key_func) { 136 SetCrashKeyValueFuncPtr set_key_func) {
137 NSString *key = [NSString stringWithUTF8String:param_name]; 137 NSString *key = [NSString stringWithUTF8String:param_name];
138 NSString *value = [NSString stringWithUTF8String:value_str.c_str()]; 138 NSString *value = [NSString stringWithUTF8String:value_str.c_str()];
139 set_key_func(key, value); 139 set_key_func(key, value);
140 } 140 }
141 141
142 void SetGpuInfoImpl(const content::GPUInfo& gpu_info, 142 void SetGpuInfoImpl(const content::GPUInfo& gpu_info,
143 SetCrashKeyValueFuncPtr set_key_func) { 143 SetCrashKeyValueFuncPtr set_key_func) {
144 SetGpuKeyValue(kGPUVendorIdParamName, 144 SetGpuKeyValue(kGPUVendorIdParamName,
145 base::StringPrintf("0x%04x", gpu_info.vendor_id), 145 base::StringPrintf("0x%04x", gpu_info.gpu.vendor_id),
146 set_key_func); 146 set_key_func);
147 SetGpuKeyValue(kGPUDeviceIdParamName, 147 SetGpuKeyValue(kGPUDeviceIdParamName,
148 base::StringPrintf("0x%04x", gpu_info.device_id), 148 base::StringPrintf("0x%04x", gpu_info.gpu.device_id),
149 set_key_func); 149 set_key_func);
150 SetGpuKeyValue(kGPUDriverVersionParamName, 150 SetGpuKeyValue(kGPUDriverVersionParamName,
151 gpu_info.driver_version, 151 gpu_info.driver_version,
152 set_key_func); 152 set_key_func);
153 SetGpuKeyValue(kGPUPixelShaderVersionParamName, 153 SetGpuKeyValue(kGPUPixelShaderVersionParamName,
154 gpu_info.pixel_shader_version, 154 gpu_info.pixel_shader_version,
155 set_key_func); 155 set_key_func);
156 SetGpuKeyValue(kGPUVertexShaderVersionParamName, 156 SetGpuKeyValue(kGPUVertexShaderVersionParamName,
157 gpu_info.vertex_shader_version, 157 gpu_info.vertex_shader_version,
158 set_key_func); 158 set_key_func);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 } 225 }
226 226
227 void SetChannel(const std::string& channel) { 227 void SetChannel(const std::string& channel) {
228 // This should match the corresponding string in breakpad_win.cc. 228 // This should match the corresponding string in breakpad_win.cc.
229 NSString* const kChannelKey = @"channel"; 229 NSString* const kChannelKey = @"channel";
230 230
231 SetCrashKeyValue(kChannelKey, base::SysUTF8ToNSString(channel)); 231 SetCrashKeyValue(kChannelKey, base::SysUTF8ToNSString(channel));
232 } 232 }
233 233
234 } // namespace child_process_logging 234 } // namespace child_process_logging
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/flash_ui.cc ('k') | chrome/common/child_process_logging_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698