Watch out for SkFixed overflow in SkMipMap.cpp.
authormtklein <mtklein@chromium.org>
Fri, 21 Nov 2014 19:38:53 +0000 (11:38 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 21 Nov 2014 19:38:53 +0000 (11:38 -0800)
commit09a22e9597e271c44dc7c2b71c72cf62a7de1e19
tree04e988c03aa87cdf3695740d53a43f2a783f7a58
parent04038eba9f4e09724031c69146699f9c6e15748e
Watch out for SkFixed overflow in SkMipMap.cpp.

Tested with -fsanitize=signed-integer-overflow.
This new assert used to trigger in MipMap unit test.

Don't appear to be any GM diffs.

BUG=skia:

Review URL: https://codereview.chromium.org/729373004
include/core/SkTypes.h
src/core/SkMipMap.cpp