Use the NDK's cpu-features library when building skia for Chromium/Android.
authordigit@google.com <digit@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 14 Jan 2013 14:58:22 +0000 (14:58 +0000)
committerdigit@google.com <digit@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 14 Jan 2013 14:58:22 +0000 (14:58 +0000)
commit47ebbcc7abf90c943b2d5e05fcedb42913e917e0
treeb519c624c82eebcdf30a10bc5f4ba90398566ff7
parent61be7946ed4c351fa3f71a407243d3cd024d9924
Use the NDK's cpu-features library when building skia for Chromium/Android.

This patch ensures that when Skia is built for Chromium, it will
always use the Android NDK's cpu-features helper library to detect
NEON at runtime.

This is needed because sandboxed Chromium renderer processes cannot
access /proc, and the probing performed in SkUtilsArm.cpp will never
work. As such, the NEON code paths will never be used even when the
device supports them.

Chromium has special code that ensures that the browser process
passes the CPU features flags to every renderer process, but
Skia needs to use android_getCpuFeatures() to get them.

See http://crbug.com/164154 for full details.
Review URL: https://codereview.appspot.com/7102045

git-svn-id: http://skia.googlecode.com/svn/trunk@7149 2bbb7eff-a529-9590-31e7-b0007b416f81
include/core/SkPreConfig.h
src/core/SkUtilsArm.cpp