aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/DFPathRendererTest.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-07-18 07:31:13 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-18 07:31:13 -0700
commit0ae36a2cebf35c68c3013383d3b640f70034be55 (patch)
treec5d335bf3bc6fc898b1811fcbc810918c943a187 /tests/DFPathRendererTest.cpp
parent490c07d77670654ab77299323b56792bddbc053f (diff)
In GrShape detect that stroked axis-aligned lines are rrects.
Diffstat (limited to 'tests/DFPathRendererTest.cpp')
-rw-r--r--tests/DFPathRendererTest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/DFPathRendererTest.cpp b/tests/DFPathRendererTest.cpp
index 561ec45629..a616399406 100644
--- a/tests/DFPathRendererTest.cpp
+++ b/tests/DFPathRendererTest.cpp
@@ -21,6 +21,9 @@ static void test_far_from_origin(GrDrawContext* drawContext, GrPathRenderer* pr,
GrResourceProvider* rp) {
SkPath path;
path.lineTo(49.0255089839f, 0.473541f);
+ // This extra line wasn't in the original bug but was added to fake out GrShape's special
+ // handling of single line segments.
+ path.rLineTo(0.015f, 0.015f);
static constexpr SkScalar mvals[] = {14.0348252854f, 2.13026182736f,
13.6122547187f, 118.309922702f,
1912337682.09f, 2105391889.87f};