[Reland] Repeating SkBitmapProcState rounding bias
authorfmalita <fmalita@chromium.org>
Mon, 4 Jan 2016 18:28:11 +0000 (10:28 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 4 Jan 2016 18:28:11 +0000 (10:28 -0800)
commitb3a835891cf221bdf4c6eeb4cf404b374955015f
tree13a52c1b1e6268330790b2e70c46cf991ac5f031
parent0152cc3819291841298013d2b5515a61e974e41f
[Reland] Repeating SkBitmapProcState rounding bias

1) observe the bias in repeat matrix procs also.
2) add utility for device space -> bitmap space mapping.
3) remove unneeded filter bias

This is a reland of https://codereview.chromium.org/1529833003/. The
main difference (and the fix) vs. the prev version is increased
precision: the mapper now operates with SkFractionalInts.

R=reed@google.com
BUG=skia:4680, skia:4649
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1539083002

Review URL: https://codereview.chromium.org/1539083002
src/core/SkBitmapProcState.cpp
src/core/SkBitmapProcState.h
src/core/SkBitmapProcState_matrix.h
src/core/SkBitmapProcState_matrix_template.h