Bounds fixes for SkXfermodeImageFilter:
authorsenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 12 Dec 2013 21:00:58 +0000 (21:00 +0000)
committersenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 12 Dec 2013 21:00:58 +0000 (21:00 +0000)
commit0682019f2161af00168bb1984918753f2a1c1e54
tree3a91cb4ab9ed5ccaa9ee6a9bca1742139381eaa9
parent30289512f988eca34534ca856c1a31536e05146e
Bounds fixes for SkXfermodeImageFilter:

1) Change the default bounds to the union of the foreground and background bounds.
2) Use a canvas translate instead of manually offsetting the foreground and background bounds by the union.
3) Apply the transfer mode to all pixels, including those outside the foreground rect by using a difference clip.

Covered by the offset test cases in the xfermodeimagefilter GM (will need rebaselines).

R=reed@google.com

Review URL: https://codereview.chromium.org/112683004

git-svn-id: http://skia.googlecode.com/svn/trunk@12652 2bbb7eff-a529-9590-31e7-b0007b416f81
expectations/gm/ignored-tests.txt
src/effects/SkXfermodeImageFilter.cpp