Adjust path_stroke_with_zero_length to draw on pixel centers
Bug: skia: Change-Id: I1183574de4e3a429fe00c5a6a0f71745f1f6f5b4 Reviewed-on: https://skia-review.googlesource.com/20969 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
47ac02467b
commit
515ccafc98
@ -84,6 +84,9 @@ protected:
|
||||
bkgrnd.setColor(SK_ColorWHITE);
|
||||
canvas->drawRect(SkRect::MakeIWH(onISize().fWidth, onISize().fHeight), bkgrnd);
|
||||
|
||||
// Move to pixel centers. The non-AA parts of this test are really poorly defined otherwise.
|
||||
canvas->translate(0.5f, 0.5f);
|
||||
|
||||
auto drawPaths = [&](SkPaint& paint, int indexMask) {
|
||||
canvas->translate(0, 30.0f);
|
||||
int index = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user