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

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

Issue 6346007: Refactor and improve gpu_info_collector: collect information on linux;... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 void SetGpuInfoImpl(const GPUInfo& gpu_info, 145 void SetGpuInfoImpl(const GPUInfo& gpu_info,
146 SetCrashKeyValueFuncPtr set_key_func) { 146 SetCrashKeyValueFuncPtr set_key_func) {
147 SetGpuKeyValue(kGPUVendorIdParamName, 147 SetGpuKeyValue(kGPUVendorIdParamName,
148 base::UintToString(gpu_info.vendor_id()), 148 base::UintToString(gpu_info.vendor_id()),
149 set_key_func); 149 set_key_func);
150 SetGpuKeyValue(kGPUDeviceIdParamName, 150 SetGpuKeyValue(kGPUDeviceIdParamName,
151 base::UintToString(gpu_info.device_id()), 151 base::UintToString(gpu_info.device_id()),
152 set_key_func); 152 set_key_func);
153 SetGpuKeyValue(kGPUDriverVersionParamName, 153 SetGpuKeyValue(kGPUDriverVersionParamName,
154 WideToUTF8(gpu_info.driver_version()), 154 gpu_info.driver_version(),
155 set_key_func); 155 set_key_func);
156 SetGpuKeyValue(kGPUPixelShaderVersionParamName, 156 SetGpuKeyValue(kGPUPixelShaderVersionParamName,
157 base::UintToString(gpu_info.pixel_shader_version()), 157 base::UintToString(gpu_info.pixel_shader_version()),
158 set_key_func); 158 set_key_func);
159 SetGpuKeyValue(kGPUVertexShaderVersionParamName, 159 SetGpuKeyValue(kGPUVertexShaderVersionParamName,
160 base::UintToString(gpu_info.vertex_shader_version()), 160 base::UintToString(gpu_info.vertex_shader_version()),
161 set_key_func); 161 set_key_func);
162 SetGpuKeyValue(kGPUGLVersionParamName, 162 SetGpuKeyValue(kGPUGLVersionParamName,
163 base::UintToString(gpu_info.gl_version()), 163 base::UintToString(gpu_info.gl_version()),
164 set_key_func); 164 set_key_func);
(...skipping 11 matching lines...) Expand all
176 NSString *value = [NSString stringWithFormat:@"%d", number_of_views]; 176 NSString *value = [NSString stringWithFormat:@"%d", number_of_views];
177 set_key_func(key, value); 177 set_key_func(key, value);
178 } 178 }
179 179
180 void SetNumberOfViews(int number_of_views) { 180 void SetNumberOfViews(int number_of_views) {
181 if (g_set_key_func) 181 if (g_set_key_func)
182 SetNumberOfViewsImpl(number_of_views, g_set_key_func); 182 SetNumberOfViewsImpl(number_of_views, g_set_key_func);
183 } 183 }
184 184
185 } // namespace child_process_logging 185 } // namespace child_process_logging
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698