| Index: chrome/common/child_process_logging_win.cc
|
| ===================================================================
|
| --- chrome/common/child_process_logging_win.cc (revision 52838)
|
| +++ chrome/common/child_process_logging_win.cc (working copy)
|
| @@ -23,6 +23,11 @@
|
| // void __declspec(dllexport) __cdecl SetExtensionID.
|
| typedef void (__cdecl *MainSetExtensionID)(size_t, const wchar_t*);
|
|
|
| +// exported in breakpad_win.cc: void __declspec(dllexport) __cdecl SetGpuInfo.
|
| +typedef void (__cdecl *MainSetGpuInfo)(const wchar_t*, const wchar_t*,
|
| + const wchar_t*, const wchar_t*,
|
| + const wchar_t*);
|
| +
|
| void SetActiveURL(const GURL& url) {
|
| static MainSetActiveURL set_active_url = NULL;
|
| // note: benign race condition on set_active_url.
|
| @@ -89,4 +94,22 @@
|
| }
|
| }
|
|
|
| +void SetGpuInfo(const GPUInfo& gpu_info) {
|
| + static MainSetGpuInfo set_gpu_info = NULL;
|
| + if (!set_gpu_info) {
|
| + HMODULE exe_module = GetModuleHandle(chrome::kBrowserProcessExecutableName);
|
| + if (!exe_module)
|
| + return;
|
| + set_gpu_info = reinterpret_cast<MainSetGpuInfo>(
|
| + GetProcAddress(exe_module, "SetGpuInfo"));
|
| + if (!set_gpu_info)
|
| + return;
|
| + }
|
| + (set_gpu_info)(UintToWString(gpu_info.vendor_id()).c_str(),
|
| + UintToWString(gpu_info.device_id()).c_str(),
|
| + gpu_info.driver_version().c_str(),
|
| + UintToWString(gpu_info.pixel_shader_version()).c_str(),
|
| + UintToWString(gpu_info.vertex_shader_version()).c_str());
|
| +}
|
| +
|
| } // namespace child_process_logging
|
|
|