Go to file
digit@google.com eec9dbcace arm: First step towards dynamic NEON support.
This patch adds minimal support for dynamic ARM NEON support,
i.e. the ability to probe the CPU at runtime for NEON and
provide alternate code paths when it is available.

- Add include/core/SkUtilsArm.h, which declares a few helper
  macros (e.g. SK_NEON_ARM_IS_DYNAMIC), plus the handy
  function 'sk_cpu_arm_has_neon()' which returns true if
  the target CPU supports the ARM NEON instruction set.

  Note that the header is in include/core/ because it will
  have to be included from NEON-specific code under src/code/

  It would probably be more logical to put it under include/opts/
  instead, but this would require moving all the NEON-specific
  stuff under src/code/ into src/opts/, which is not trivial
  due to the way the code is currently architected.

- Add src/core/SkUtilsArm.cpp which implements
  'sk_cpu_arm_has_neon' for ARM-based Linux systems, only
  when SK_NEON_ARM_IS_DYNAMIC is true.

  (For other cases, 'sk_cpu_arm_has_neon' is an inline function
   that returns a constant 'true' or 'false' value).

  There is no user-level accessible CPUID instruction on ARM,
  so do all CPU feature probing by parsing /proc/cpuinfo.
  This is Linux-specific.

  For Debug build types, the CPU probing result is printed
  to the Android log (or Linux command-line) for easier
  debugging.

- Create a new 'opts_neon' target (static library) which shall
  contain all the NEON-specific code paths for the library.

  This is necessary because -mfpu=neon impacts also non-scalar
  code. Just like with -mssse3 on x86, we can't build the rest
  of the library with this flag.

  Note that for now, we only include memset16_neon and
  memset32_neon in this library.

- Modify opts_check_arm.cpp to implement SK_ARM_NEON_IS_DYNAMIC
  properly.

Compared to a 'xoom' build, the only difference is the use of
NEON-optimized memset16/32 functions. Later patches will move
more NEON-specific code paths to 'opts_neon'.
Review URL: https://codereview.appspot.com/6247058

git-svn-id: http://skia.googlecode.com/svn/trunk@4069 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-05-30 13:54:41 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench add bench for floor variants 2012-05-30 12:26:52 +00:00
experimental shape ops work in progress (get rid of some warnings) 2012-05-23 18:09:25 +00:00
forth Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
gm Converted AAClips SampleApp slide to GM:simpleaaclip 2012-05-22 12:14:50 +00:00
gyp arm: First step towards dynamic NEON support. 2012-05-30 13:54:41 +00:00
include arm: First step towards dynamic NEON support. 2012-05-30 13:54:41 +00:00
samplecode Change patheffect to take a (new) StrokeRec object, which encapsulates the fill 2012-05-25 01:04:12 +00:00
src arm: First step towards dynamic NEON support. 2012-05-30 13:54:41 +00:00
tests use (float)(1 << 23) instead of 1.0p+23 since the latter isn't supported in VS 2012-05-30 13:48:14 +00:00
third_party Remove tesselated path renderer and supporting code, glu, and libtess target 2012-05-11 17:32:43 +00:00
tools svndiff: report added and deleted files, not just modified files 2012-05-29 21:28:12 +00:00
trybots_to_run Update list of trybots used by https://goto.google.com/HowToLandSkiaChangesThatChangeWebkitLayoutTests 2012-05-29 15:33:30 +00:00
DEPS Update skia's gyp to r1320. 2012-04-09 13:57:45 +00:00
Doxyfile Create update-doxygen script that generates and uploads docs 2011-12-06 14:52:38 +00:00
gyp_skia Make all gyp targets automatically include common.gypi 2012-03-16 13:52:49 +00:00
LICENSE Manually update copyright notices in files that defied the automated process 2011-07-28 14:24:55 +00:00
make.bat Manually update copyright notices in files that defied the automated process 2011-07-28 14:24:55 +00:00
make.py Make "make gyp" work on Windows 2012-03-23 18:14:25 +00:00
Makefile Stop packaging command-line Mac tools as a bundle. 2011-08-15 19:22:39 +00:00
Makefile.old Higher resolution timers for bench. 2011-06-07 19:16:02 +00:00
README whitespace commit to trigger buildbot 2011-07-15 14:11:58 +00:00
skia.gyp Some final cleanups leading up to The Official Switch to Gyp 2011-06-07 14:48:41 +00:00
whitespace.txt Whitespace change - could not reproduce r4049's Debug Android failure locally 2012-05-25 12:26:30 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at http://code.google.com/p/skia/wiki/DocRoot