aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-18 22:14:49 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-18 22:14:49 +0000
commitada90dac10fa804b49cac9d4e8aa036cb587044f (patch)
treeff0c1a009ebf49ecae6567bf80f85e8a5fe7d348 /gm
parentd44d988127841cf9180bb7ba91b6eba8127af467 (diff)
"Fix" for hairline corner bugs
Diffstat (limited to 'gm')
-rw-r--r--gm/hairlines.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/gm/hairlines.cpp b/gm/hairlines.cpp
index 7be4423483..d4d142fa7a 100644
--- a/gm/hairlines.cpp
+++ b/gm/hairlines.cpp
@@ -104,6 +104,35 @@ protected:
SkFloatToScalar(5.f), SkFloatToScalar(1.f));
problem2->close();
}
+
+ // Three paths that show the same bug (missing end caps)
+ {
+ // A caret (crbug.com/131770)
+ SkPath* bug0 = &fPaths.push_back();
+ bug0->moveTo(6.5f,5.5f);
+ bug0->lineTo(3.5f,0.5f);
+ bug0->moveTo(0.5f,5.5f);
+ bug0->lineTo(3.5f,0.5f);
+ }
+
+ {
+ // An X (crbug.com/137317)
+ SkPath* bug1 = &fPaths.push_back();
+
+ bug1->moveTo(1, 1);
+ bug1->lineTo(6, 6);
+ bug1->moveTo(1, 6);
+ bug1->lineTo(6, 1);
+ }
+
+ {
+ // A right angle (crbug.com/137465 and crbug.com/256776)
+ SkPath* bug2 = &fPaths.push_back();
+
+ bug2->moveTo(5.5f, 5.5f);
+ bug2->lineTo(5.5f, 0.5f);
+ bug2->lineTo(0.5f, 0.5f);
+ }
}
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {