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

Side by Side Diff: base/android/cpu_features.cc

Issue 11503013: android: Pass CPU properties from browser to renderer process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #include <cpu-features.h>
bulach 2012/12/10 14:03:07 nit: copyright notice
digit1 2012/12/10 14:44:56 Done.
2
3 #include "base/android/jni_android.h"
4 #include "jni/CpuFeatures_jni.h"
5
6 namespace base {
7 namespace android {
8
9 jint GetCoreCount(JNIEnv*, jclass) {
10 return android_getCpuCount();
bulach 2012/12/10 14:03:07 nit: the indentation seems off here and the two ca
digit1 2012/12/10 14:44:56 Done.
11 }
12
13 jlong GetCpuFeatures(JNIEnv*, jclass) {
14 return android_getCpuFeatures();
15 }
16
17 void SetCpu(JNIEnv*, jclass, jint cpuCount, jlong cpuFeatures) {
bulach 2012/12/10 14:03:07 nit: hacker_style for cpu_count and cpu_features
digit1 2012/12/10 14:44:56 Done.
18 android_setCpu(cpuCount, cpuFeatures);
19 }
20
21 bool RegisterCpuFeatures(JNIEnv* env) {
22 return RegisterNativesImpl(env);
23 }
24
25 } // namespace android
26 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698