qt5base-lts/tests/baseline/painting/scripts/perspectives2.qps
Eirik Aavitsland e8f93e38de Rename and restructure the baseline (lancelot) testing code
In preparation for addition of new baseline tests, establish a new
test category, "baseline". This is similar to the category
"benchmarks" in that it contains tests that use the QTest framework,
but conceptually are not unit tests, in contrast to those under auto/.

Move the existing QPainter baseline test, tst_lancelot, into this new
category, and rename it accordingly.

Baseline tests use the QBaselineTest extension to QTest. Move that
extension too into the tests/baseline directory, allowing the clean
out of the baselineserver directory.

Pick-to: 6.2
Change-Id: I1b527f5867c953b1d22be73798fcf7d1494712ea
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2021-11-16 14:01:50 +01:00

310 lines
3.6 KiB
Plaintext

# Version: 1
setRenderHint Antialiasing
image_load zebra.png zebra_png
image_convertToFormat zebra_png zebra ARGB32_Premultiplied
translate 75 100
# standard draw
begin_block row1
drawImage zebra -50 -50
translate 90 0
save
rotate_y 50
drawImage zebra -50 -50
restore
translate 65 0
save
rotate_y 60
drawImage zebra -50 -50
restore
translate 50 0
save
rotate_y 70
drawImage zebra -50 -50
restore
translate 30 0
save
rotate_y 80
drawImage zebra -50 -50
restore
translate 24 0
save
rotate_y 82
drawImage zebra -50 -50
restore
translate 20 0
save
rotate_y 84
drawImage zebra -50 -50
restore
translate 16 0
save
rotate_y 86
drawImage zebra -50 -50
restore
translate 12 0
save
rotate_y 87
drawImage zebra -50 -50
restore
translate 8 0
save
rotate_y 88
drawImage zebra -50 -50
restore
translate 6 0
save
rotate_y 89
drawImage zebra -50 -50
restore
translate 6 0
save
rotate_y 91
drawImage zebra -50 -50
restore
translate 6 0
save
rotate_y 92
drawImage zebra -50 -50
restore
translate 8 0
save
rotate_y 93
drawImage zebra -50 -50
restore
translate 12 0
save
rotate_y 94
drawImage zebra -50 -50
restore
translate 16 0
save
rotate_y 96
drawImage zebra -50 -50
restore
translate 20 0
save
rotate_y 98
drawImage zebra -50 -50
restore
translate 24 0
save
rotate_y 100
drawImage zebra -50 -50
restore
translate 30 0
save
rotate_y 110
drawImage zebra -50 -50
restore
translate 50 0
save
rotate_y 120
drawImage zebra -50 -50
restore
translate 65 0
save
rotate_y 130
drawImage zebra -50 -50
restore
translate 90 0
save
rotate_y 180
drawImage zebra -50 -50
restore
end_block row1
resetMatrix
translate 75 280
setRenderHint SmoothPixmapTransform
repeat_block row1
resetMatrix
setPen black
translate 300 20
drawText 0 0 "Fast Pixmap Transform"
resetMatrix
translate 300 210
drawText 0 0 "Smooth Pixmap Transform"
resetMatrix
translate 0 400
image_load dome_argb32.png the_pixmap
image_convertToFormat the_pixmap dome ARGB32
setRenderHint SmoothPixmapTransform false
translate 75 100
# standard draw
begin_block row2
drawImage dome -50 -50
translate 90 0
save
rotate_y 50
drawImage dome -50 -50
restore
translate 65 0
save
rotate_y 60
drawImage dome -50 -50
restore
translate 50 0
save
rotate_y 70
drawImage dome -50 -50
restore
translate 30 0
save
rotate_y 80
drawImage dome -50 -50
restore
translate 24 0
save
rotate_y 82
drawImage dome -50 -50
restore
translate 20 0
save
rotate_y 84
drawImage dome -50 -50
restore
translate 16 0
save
rotate_y 86
drawImage dome -50 -50
restore
translate 12 0
save
rotate_y 87
drawImage dome -50 -50
restore
translate 8 0
save
rotate_y 88
drawImage dome -50 -50
restore
translate 6 0
save
rotate_y 89
drawImage dome -50 -50
restore
translate 6 0
save
rotate_y 91
drawImage dome -50 -50
restore
translate 6 0
save
rotate_y 92
drawImage dome -50 -50
restore
translate 8 0
save
rotate_y 93
drawImage dome -50 -50
restore
translate 12 0
save
rotate_y 94
drawImage dome -50 -50
restore
translate 16 0
save
rotate_y 96
drawImage dome -50 -50
restore
translate 20 0
save
rotate_y 98
drawImage dome -50 -50
restore
translate 24 0
save
rotate_y 100
drawImage dome -50 -50
restore
translate 30 0
save
rotate_y 110
drawImage dome -50 -50
restore
translate 50 0
save
rotate_y 120
drawImage dome -50 -50
restore
translate 65 0
save
rotate_y 130
drawImage dome -50 -50
restore
translate 90 0
save
rotate_y 180
drawImage dome -50 -50
restore
end_block row2
resetMatrix
translate 0 400
translate 75 280
setRenderHint SmoothPixmapTransform
repeat_block row2
resetMatrix
setPen black
translate 0 400
translate 300 20
drawText 0 0 "Fast Pixmap Transform"
resetMatrix
translate 0 400
translate 300 210
drawText 0 0 "Smooth Pixmap Transform"