diff options
author | mtklein <mtklein@chromium.org> | 2016-04-06 14:25:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-06 14:25:35 -0700 |
commit | 48156ed412410c9d27b560e8596e3f34d175a277 (patch) | |
tree | 2913b2ba85a9d9d6720b9addbcaa57512644aa17 /gm | |
parent | 758586c7f11a6b3529bd4a1c9b4e982a0d0b0582 (diff) |
path_stroke_with_zero_length: turn off drawFat() by default.
The replay modes cannot readback, and so cannot draw the fat parts, which
means we've had to exempt them from checking that they draw identically.
I don't mind if we leave it alone, but I thought I'd check to see your opinion.
BUG=skia:4095
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1862113004
Review URL: https://codereview.chromium.org/1862113004
Diffstat (limited to 'gm')
-rw-r--r-- | gm/path_stroke_with_zero_length.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/path_stroke_with_zero_length.cpp b/gm/path_stroke_with_zero_length.cpp index ab9273626c..c69fe5c0c7 100644 --- a/gm/path_stroke_with_zero_length.cpp +++ b/gm/path_stroke_with_zero_length.cpp @@ -91,7 +91,7 @@ protected: if (indexMask & (1 << index)) { canvas->drawPath(path, paint); } - if (paint.getStrokeWidth() < 2) { + if (this->getMode() == skiagm::GM::kSample_Mode && paint.getStrokeWidth() < 2) { drawFat(canvas, path, paint, index); } ++index; |