Add baseline test for the (QML) Canvas2D item
Based heavily on qtdeclarative's and qtquick3d's scenegrabber
tools and baseline tests.
The only difference is that as with the canvaspainting test,
commenting out the USE_SERVER define will make the test save
all test results into png files instead of attempting to connect
to the server.
Alternatively, use the -viewonly option of the scenegrabber to
debug individual test cases, although as of now launching them
via the qml tool works too.
One test case currently, the flower. Other tests can be added as
.qml files under 'data' (an under subdirectories in there).
Root item, and so screenshot, sizes should be kept low.
Task-number: QTBUG-146036
Change-Id: I71d5a7dca65baf88ffae9aaca12467c25eac5b71
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>