CanvasKit version 0.37.1
Make CPU nearest image sampling round down and remove matrix tweak
Manipulating the "total matrix" is incompatible with the
idea that effects might insert non-linear transformations of the
Instead we modify the code that samples images to round down at
exact integers by subtracting one ULP before taking the floor. This makes drawing an image at 1:1 device to image pixels but with a half pixel skew continue to select each image pixel once. However -1:1 with
a half pixel skew will repeat one value and miss one value.
Put behind guard for now pending Chrome test rebaseline.
Commit-Queue: Brian Salomon <email@example.com>
Reviewed-by: Brian Osman <firstname.lastname@example.org>
4 files changed