aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBBHFactory.cpp
diff options
context:
space:
mode:
authorGravatar James Zern <jzern@google.com>2016-11-09 19:22:46 -0800
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-11-16 00:03:26 +0000
commit44e91c9638e7e31966d304635682e819cd9e440a (patch)
treeee6953e064b5af4a5e68439fffcc7ffea9d5f284 /src/core/SkBBHFactory.cpp
parentf5a90e8a3f9350246236602d8ffc52d6ccf80a5e (diff)
LinearGradientContext::shade4_clamp: fix div by 0
getScaleX() may return 0; move division using it after a SkScalarNearlyZero check and closer to its first use. Change-Id: Ie209d46dc101213e20e90486651ee17570425bb8 Reviewed-on: https://skia-review.googlesource.com/4643 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'src/core/SkBBHFactory.cpp')
0 files changed, 0 insertions, 0 deletions