diff options
author | 2016-07-18 07:31:13 -0700 | |
---|---|---|
committer | 2016-07-18 07:31:13 -0700 | |
commit | 0ae36a2cebf35c68c3013383d3b640f70034be55 (patch) | |
tree | c5d335bf3bc6fc898b1811fcbc810918c943a187 /tests/DFPathRendererTest.cpp | |
parent | 490c07d77670654ab77299323b56792bddbc053f (diff) |
In GrShape detect that stroked axis-aligned lines are rrects.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2151313002
Review-Url: https://codereview.chromium.org/2151313002
Diffstat (limited to 'tests/DFPathRendererTest.cpp')
-rw-r--r-- | tests/DFPathRendererTest.cpp | 3 |
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}; |