aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2015-12-22 07:50:16 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-12-22 07:50:16 -0800
commitc53b82ec0ec496bed8060f73d605347ee65f2543 (patch)
tree8b7bb5935a3575d58196544ee2a06647b2557f7c /gm
parent217a333eb6d1f5f1405777dca3a06acf43adc9b3 (diff)
revised strokerect gm
In service of the bug below, revise the gm to show what zero widths draw, and what they should draw (by including rects with fractionally tiny widths). TBR=halcanary@google.com,reed@google.com BUG=1294 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1548643002 Review URL: https://codereview.chromium.org/1548643002
Diffstat (limited to 'gm')
-rw-r--r--gm/strokerect.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gm/strokerect.cpp b/gm/strokerect.cpp
index c1904953d6..f7e36057df 100644
--- a/gm/strokerect.cpp
+++ b/gm/strokerect.cpp
@@ -79,6 +79,9 @@ protected:
{ 0, 0, W, 0 },
{ 0, 0, 0, H },
{ 0, 0, 0, 0 },
+ { 0, 0, W, FLT_EPSILON },
+ { 0, 0, FLT_EPSILON, H },
+ { 0, 0, FLT_EPSILON, FLT_EPSILON },
};
for (int doFill = 0; doFill <= 1; ++doFill) {