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

Unified Diff: webkit/child/webkitplatformsupport_impl.cc

Issue 67373006: Cache the numberOfProcessors value on posix and expose it to blink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « webkit/child/webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/child/webkitplatformsupport_impl.cc
diff --git a/webkit/child/webkitplatformsupport_impl.cc b/webkit/child/webkitplatformsupport_impl.cc
index 398b45c1c5c05d976be73cad1386f3ee9a0d98ff..d5bf20d63c4ad49c4f5e54e38301debe1b760be7 100644
--- a/webkit/child/webkitplatformsupport_impl.cc
+++ b/webkit/child/webkitplatformsupport_impl.cc
@@ -862,6 +862,10 @@ size_t WebKitPlatformSupportImpl::physicalMemoryMB() {
return static_cast<size_t>(base::SysInfo::AmountOfPhysicalMemoryMB());
}
+size_t WebKitPlatformSupportImpl::numberOfProcessors() {
+ return static_cast<size_t>(base::SysInfo::NumberOfProcessors());
+}
+
void WebKitPlatformSupportImpl::startHeapProfiling(
const blink::WebString& prefix) {
// FIXME(morrita): Make this built on windows.
« no previous file with comments | « webkit/child/webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698