qt5base-lts/tests/baseline/painting/scripts
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
..
aliasing.qps
arcs2.qps
arcs.qps
background_brush.qps
background.qps
beziers.qps
bitmaps.qps
borderimage.qps
brush_pens.qps
brushes.qps
clippath_antialiasing.qps
clippaths.qps
clipping_state.qps
clipping.qps
cliprects.qps
conical_gradients_perspectives.qps
conical_gradients.qps
cosmetic.qps
dashes.qps
degeneratebeziers.qps
deviceclipping.qps
drawpoints.qps
ellipses.qps
fillrect_aa.qps
fillrect.qps
filltest.qps
glyphruns.qps
gradients.qps
gradientxform_device.qps
gradientxform_logical.qps
gradientxform_object.qps
hinting.qps
image_dpr.qps
image_formats.qps
images2.qps
images.qps
join_cap_styles_duplicate_control_points.qps
join_cap_styles.qps
linear_gradients_perspectives.qps
linear_gradients.qps
linear_resolving_gradients.qps
lineconsistency.qps
linedashes2_aa.qps
linedashes2.qps
linedashes.qps
lines2.qps
lines3.qps
lines.qps
pathfill.qps
paths_aa.qps
paths.qps
pens_aa.qps
pens_cosmetic.qps
pens.qps
perspectives2.qps
perspectives.qps
pixmap_rotation2.qps
pixmap_rotation.qps
pixmap_scaling.qps
pixmap_subpixel.qps
pixmaps.qps
porter_duff2.qps
porter_duff.qps
primitives.qps
radial_gradients_perspectives.qps
radial_gradients.qps
rasterops.qps
richtext.qps
sizes.qps
smallcaps_path.qps
statictext.qps
text_perspectives.qps
text.qps
thinlines.qps
tiled_pixmap.qps
tinydashes.qps