Graceful degredation for SkOpts_hsw.
authorMike Klein <mtklein@chromium.org>
Thu, 26 Jan 2017 21:23:26 +0000 (16:23 -0500)
committerMike Klein <mtklein@chromium.org>
Thu, 26 Jan 2017 21:47:31 +0000 (21:47 +0000)
commit88235bbbbe51cc58af8c89f74ef153b433934dd6
tree43c61135e2bce5a2d8f9c0f65e26ea48db37b9f3
parent0bda6235fbef3759f3682358155ea865f01b6f9d
Graceful degredation for SkOpts_hsw.

__AVX2__ will not be defined if you omit -mavx2.  Android does this
intentionally for x86 builds.  (No mobile CPU supports AVX2 AFAIK.)

This should fix the Android roll.

Change-Id: Ib94c862641abc11fbb46863afc53bcc049f362ad
Reviewed-on: https://skia-review.googlesource.com/7633
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Reviewed-by: Matt Sarett <msarett@google.com>
src/opts/SkOpts_hsw.cpp