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

Unified Diff: Source/core/frame/NavigatorCPU.cpp

Issue 262723002: Implement navigator.hardwareConcurrency (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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
Index: Source/core/frame/NavigatorCPU.cpp
diff --git a/Source/core/css/resolver/StyleResolverParentScope.cpp b/Source/core/frame/NavigatorCPU.cpp
similarity index 57%
copy from Source/core/css/resolver/StyleResolverParentScope.cpp
copy to Source/core/frame/NavigatorCPU.cpp
index bde3a362aed64146b76b1b703260b6e6605bdfa7..6920b6d8f1b59f94d26b4d8819800840434f3b88 100644
--- a/Source/core/css/resolver/StyleResolverParentScope.cpp
+++ b/Source/core/frame/NavigatorCPU.cpp
@@ -3,11 +3,15 @@
// found in the LICENSE file.
#include "config.h"
+#include "core/frame/NavigatorCPU.h"
-#include "core/css/resolver/StyleResolverParentScope.h"
+#include "public/platform/Platform.h"
namespace WebCore {
-StyleResolverParentScope* StyleResolverParentScope::s_currentScope = 0;
+unsigned NavigatorCPU::cores()
+{
+ return blink::Platform::current()->numberOfProcessors();
Rik 2014/05/18 23:18:30 Do you want to limit the returned number to limit
+}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698