add isRect() check to AAClip, to detect if a soft-clip is really just an irect
authorreed <reed@google.com>
Thu, 7 Aug 2014 18:48:10 +0000 (11:48 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 7 Aug 2014 18:48:10 +0000 (11:48 -0700)
commit202ab2a5cabaf25a1e6ec47c0003da3213a79864
tree6185f039ca0462cd964dc38b35b9e71c706adffa
parent7b624480654222a72e05deb1b3cc7d1849ce043d
add isRect() check to AAClip, to detect if a soft-clip is really just an irect

taken from (https://codereview.chromium.org/445233006/)

fix: don't assume that the first yoffset is 0, since we may have performed a translate and not
re-alloced our data.

This reverts commit 0aeea6d344f12e35e29a79f4bbc48af88f913204.

TBR=

Author: reed@google.com

Review URL: https://codereview.chromium.org/443353004
src/core/SkAAClip.cpp
src/core/SkAAClip.h
src/core/SkRasterClip.cpp
src/core/SkRasterClip.h
tests/AAClipTest.cpp