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

Unified Diff: webrtc/base/systeminfo.h

Issue 1286163003: Move SystemInfo to rtc_base_approved and delete unused code. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Address comments Created 5 years, 4 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 | « webrtc/base/base.gyp ('k') | webrtc/base/systeminfo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/systeminfo.h
diff --git a/webrtc/base/systeminfo.h b/webrtc/base/systeminfo.h
index 47b93f6799a86dd26aa540fe7d691f96c21a143c..e2237026fb0a157f5f681d8c159fa8942da6b6da 100644
--- a/webrtc/base/systeminfo.h
+++ b/webrtc/base/systeminfo.h
@@ -28,53 +28,20 @@ class SystemInfo {
SystemInfo();
- // The number of CPU Cores in the system.
- int GetMaxPhysicalCpus();
// The number of CPU Threads in the system.
- int GetMaxCpus();
+ static int GetMaxCpus();
// The number of CPU Threads currently available to this process.
- int GetCurCpus();
+ static int GetCurCpus();
// Identity of the CPUs.
Architecture GetCpuArchitecture();
std::string GetCpuVendor();
- int GetCpuFamily();
- int GetCpuModel();
- int GetCpuStepping();
- // Return size of CPU cache in bytes. Uses largest available cache (L3).
- int GetCpuCacheSize();
- // Estimated speed of the CPUs, in MHz. e.g. 2400 for 2.4 GHz
- int GetMaxCpuSpeed();
- int GetCurCpuSpeed();
// Total amount of physical memory, in bytes.
int64 GetMemorySize();
// The model name of the machine, e.g. "MacBookAir1,1"
std::string GetMachineModel();
- // The gpu identifier
- struct GpuInfo {
- GpuInfo();
- ~GpuInfo();
- std::string device_name;
- std::string description;
- int vendor_id;
- int device_id;
- std::string driver;
- std::string driver_version;
- };
- bool GetGpuInfo(GpuInfo *info);
-
private:
- int physical_cpus_;
- int logical_cpus_;
- int cache_size_;
- Architecture cpu_arch_;
- std::string cpu_vendor_;
- int cpu_family_;
- int cpu_model_;
- int cpu_stepping_;
- int cpu_speed_;
- int64 memory_;
- std::string machine_model_;
+ static int logical_cpus_;
};
} // namespace rtc
« no previous file with comments | « webrtc/base/base.gyp ('k') | webrtc/base/systeminfo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698