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

Unified Diff: base/cpu.h

Issue 11009011: Use the cpuid instruction to generate the CPU brand string. And (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « AUTHORS ('k') | base/cpu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/cpu.h
===================================================================
--- base/cpu.h (revision 160148)
+++ base/cpu.h (working copy)
@@ -32,6 +32,7 @@
bool has_ssse3() const { return has_ssse3_; }
bool has_sse41() const { return has_sse41_; }
bool has_sse42() const { return has_sse42_; }
+ const std::string& cpu_brand() const { return cpu_brand_; }
private:
// Query the processor for CPUID information.
@@ -51,6 +52,7 @@
bool has_sse41_;
bool has_sse42_;
std::string cpu_vendor_;
+ std::string cpu_brand_;
};
} // namespace base
« no previous file with comments | « AUTHORS ('k') | base/cpu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698