Add fast normalize for SkLightingImageFilter.
authorjvanverth <jvanverth@google.com>
Thu, 16 Jul 2015 19:56:46 +0000 (12:56 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 16 Jul 2015 19:56:46 +0000 (12:56 -0700)
commitdfa0ecf169db87f7afddd93bc1c500de481a62c7
treea656018af5ebb3cb7c27efd2a70019e9b037c40a
parentc1121efbc6addc8262b88e8f08ad5a4653fbea62
Add fast normalize for SkLightingImageFilter.

The normalize routine in SkPoint3 is very robust. However, for simple
lighting cases we prefer speed over robustness. This fixes a perf
regression in smoothness.tough_filters_cases.

BUG=chromium:510562

Review URL: https://codereview.chromium.org/1240023002
src/effects/SkLightingImageFilter.cpp