qt6-bb10/tests/baseline/shared
Eirik Aavitsland f46db29d8c Painting: fix overriding and combining different clip types
In a recent improvement (6de36918c0) the
last set clip region or path was stored in separate variables, in
order to be set again if the aliasing mode changed. That solution was
too simplistic, as it would break down as soon as more than one clip
area was set, with the latter either replacing or intersecting the
first. It was also unnecessary to introduce new storing of clip areas
and transforms, as those are already recorded in the clipInfo stack in
the painter state. This patch hence reverts much of that implementation.

However the basic idea of setting the clip area again after AA change
is good, so that part is kept, implementated instead by calling a
pre-existing function to replay the clipInfo stack.

One of the baseline test cases is extended to excercise the
combination of clip areas. As a driveby, support for setClipRectF is
added to the painting baseline test scripts, and the build of the
manual lance tool is fixed.

Fixes: QTBUG-101474
Pick-to: 6.3 6.2
Change-Id: Ide8b70d8cbf138deb06cbb84f69e62f7405886e6
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
2022-03-15 12:45:46 +01:00
..
baselineprotocol.cpp Baseline: Allow setting git commit through environment variable 2022-03-14 23:38:09 +01:00
baselineprotocol.h Baseline test framework: follow rule of zero for PlatformInfo type 2022-01-19 13:58:23 +01:00
baselineprotocol.pri
lookup3.cpp Update baseline testing framework 2021-11-24 11:47:43 +01:00
paintcommands.cpp Painting: fix overriding and combining different clip types 2022-03-15 12:45:46 +01:00
paintcommands.h Painting: fix overriding and combining different clip types 2022-03-15 12:45:46 +01:00
qbaselinetest.cpp Add a couple of utility functions to the baseline test framework 2022-01-13 14:56:37 +01:00
qbaselinetest.h Prevent takeStandardSnapshots() from stopping on first mismatch 2022-01-17 21:24:27 +01:00
qbaselinetest.pri Share common code for baseline-testing widget UIs 2021-11-26 22:40:54 +01:00
qwidgetbaselinetest.cpp Baseline: don't compensate for DPRs != 1.0 2022-03-14 23:38:10 +01:00
qwidgetbaselinetest.h Share common code for baseline-testing widget UIs 2021-11-26 22:40:54 +01:00