diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2019-11-07 11:59:13 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-11-27 09:55:16 +0100 |
commit | 36d0e875c72341ee0305c2840556e3839f136034 (patch) | |
tree | 4f78598e369dc72885730188787ea3f6b0c1f21c /vcl/qa/cppunit | |
parent | 54be644c092eebb8be57a251556fe3f0e5f99e57 (diff) |
use center of pixels when doing GPU drawing using Skia
According to https://bugs.chromium.org/p/skia/issues/detail?id=9611
rounding errors may cause off-by-one errors, so compensate when
converting int->SkScalar in relevant cases.
Change-Id: I72a579064206c216c9f99adc7d7c2c57bbe567d6
Diffstat (limited to 'vcl/qa/cppunit')
-rw-r--r-- | vcl/qa/cppunit/BackendTest.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/qa/cppunit/BackendTest.cxx b/vcl/qa/cppunit/BackendTest.cxx index a36c0faa5568..fd9bf10eaff5 100644 --- a/vcl/qa/cppunit/BackendTest.cxx +++ b/vcl/qa/cppunit/BackendTest.cxx @@ -438,8 +438,8 @@ public: // CPPUNIT_TEST(testDrawFilledRectWithPolyPolygon); TODO SKIA // CPPUNIT_TEST(testDrawFilledRectWithPolyPolygon2D); TODO SKIA - // CPPUNIT_TEST(testDrawDiamondWithPolygon); TODO SKIA - // CPPUNIT_TEST(testDrawDiamondWithLine); TODO SKIA + CPPUNIT_TEST(testDrawDiamondWithPolygon); + CPPUNIT_TEST(testDrawDiamondWithLine); CPPUNIT_TEST(testDrawDiamondWithPolyline); CPPUNIT_TEST(testDrawDiamondWithPolylineB2D); |