Descriptionandroid: Pass CPU properties from browser to renderer process.
This is necessary to allow the renderer processes to use NEON
instructions on ARM devices that support them in libraries like
Skia.
The main issue is that on JellyBean and higher, the renderer
process runs in a sandbox that prevents it from accessing the
filesystem, including /proc/ which is the only way to query the
kernel for the features detected by the CPU.
To overcome this, send the result of the probe to each renderer
process, which will use the new android_setCpu() function
introduced in https://gerrit.chromium.org/gerrit/#/c/39370/
Note that this requires that third-party libraries use the
android_getCpuCount() and android_getCpuFeatures() function
to get this data at runtime.
BUG=164154
NOTRY=true
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175820
Patch Set 1 #
Total comments: 14
Patch Set 2 : fix marcus' nits #Patch Set 3 : #
Total comments: 6
Patch Set 4 : remove unused Java native method + fix comment #Messages
Total messages: 21 (0 generated)
|