Index: base/android/cpu_features.cc |
diff --git a/base/android/cpu_features.cc b/base/android/cpu_features.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6a1869534b0d0c493b78682d87d71ad52a02b87f |
--- /dev/null |
+++ b/base/android/cpu_features.cc |
@@ -0,0 +1,26 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include <cpu-features.h> |
+ |
+#include "base/android/jni_android.h" |
+#include "jni/CpuFeatures_jni.h" |
+ |
+namespace base { |
+namespace android { |
+ |
+jint GetCoreCount(JNIEnv*, jclass) { |
+ return android_getCpuCount(); |
+} |
+ |
+jlong GetCpuFeatures(JNIEnv*, jclass) { |
+ return android_getCpuFeatures(); |
+} |
+ |
+bool RegisterCpuFeatures(JNIEnv* env) { |
+ return RegisterNativesImpl(env); |
+} |
+ |
+} // namespace android |
+} // namespace base |