diff options
Diffstat (limited to 'content/gpu')
-rw-r--r-- | content/gpu/gpu_info_collector_mac.mm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/content/gpu/gpu_info_collector_mac.mm b/content/gpu/gpu_info_collector_mac.mm index 4c31ed0..13e1340 100644 --- a/content/gpu/gpu_info_collector_mac.mm +++ b/content/gpu/gpu_info_collector_mac.mm @@ -8,9 +8,12 @@ #include "base/debug/trace_event.h" #include "base/logging.h" +#include "base/mac/mac_util.h" #include "base/mac/scoped_cftyperef.h" #include "base/memory/scoped_ptr.h" +#include "base/string_number_conversions.h" #include "base/string_piece.h" +#include "base/string_util.h" #include "base/sys_string_conversions.h" #include "ui/gl/gl_bindings.h" #include "ui/gl/gl_context.h" @@ -169,6 +172,14 @@ bool CollectGraphicsInfo(content::GPUInfo* gpu_info) { bool CollectPreliminaryGraphicsInfo(content::GPUInfo* gpu_info) { DCHECK(gpu_info); + std::string model_name; + int32 model_major = 0, model_minor = 0; + base::mac::ParseModelIdentifier(base::mac::GetModelIdentifier(), + &model_name, &model_major, &model_minor); + ReplaceChars(model_name, " ", "_", &gpu_info->machine_model); + gpu_info->machine_model += " " + base::IntToString(model_major) + + "." + base::IntToString(model_minor); + return CollectPCIVideoCardInfo(gpu_info); } |