From 87aaa5685b8e5dc755415a4c84c07c5cf456114e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 8 Oct 2017 14:36:35 -0400 Subject: [PATCH] Add a cross-fade node ref test The Vulkan renderer doesn't pass this one either, currently. --- testsuite/gsk/cross-fade.node | Bin 0 -> 640324 bytes testsuite/gsk/cross-fade.png | Bin 0 -> 1972 bytes testsuite/gsk/test-render-nodes.c | 26 ++++++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 testsuite/gsk/cross-fade.node create mode 100644 testsuite/gsk/cross-fade.png diff --git a/testsuite/gsk/cross-fade.node b/testsuite/gsk/cross-fade.node new file mode 100644 index 0000000000000000000000000000000000000000..beaa2c6efd388a87ed732305c1772510fa51d79a GIT binary patch literal 640324 zcmeI1F|KagnN_bUK@cEBE9^E9*cl=rfP}OpJFt*I0zEf?mXRP;GiXBf;PJ{X|N8e> zbFBSDJdSmJ_nhmF&(ieB&cFYk|Mfrp@xT4ykN@L8{`Wup@yB0({_QV+{oOx*@4x=^ z`@i)6`+xoZAAb4xFMs*RKmYvWM}OKN2XY_>av%qCAO~_F2XY_>av%qCAO~_F2XY_> zav%qCAO~_F2XY_>av%qCAO~_F2XY_>av%qCAO~_F2XY_>av%qCAO~_F2XY_>av%qC zAO~_F2XY_>av%qCAO~_F2XY_>av%qCAO~_F2XY_>av%qCAO~_F2XY_>av%qCAO~_F z2XY_>av%qCAO~_F2XY_>av%qCAO~_F2XY_>av%qCAO~_F2XY_>av%qCAO~_F2XY_> zav%qCAO~_F2XY_>av%qCAO~_F2XY_>av%qCAO~_F2XY_>av%qCAO~_F2XY_>av%qC zAO~_F2XY_>av%qCAO~_F2XY_>av%qCAO~_F2XY_>av%qCAO~_F2XY_>av%qCAO~_F z2XY_>av%qCAO~_F2XY_>av%qCAO~_F2XY_>av%qCAO~_F2XY_>av%qCAO~_F2XY_> zav%qCAO~_F2XY_>av%qCAO~_F2XY_>av%qCAO~_F2XY_>av%qCAO~_F2XY_>av%q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T6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cb zIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6 zkOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8 z138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cb zIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6 zkOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8 z138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cb zIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6 zkOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8 z138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cb zIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6 zkOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8 z138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cb zIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6kOMi8138cbIgkT6 zkOMi8138cbIgkT6kOMjJYaICTn?L;W^V3g%|I=@O{Hq^-`}xP;{q5`i_y6y|`wzeW z>)pTo{kQ*>fBfCw{q1x9{iommwf@uZ|KXR9fBN(Dul)Hd_x|6%^4u@e{<@#;?FD|_ zdj0>q*ZVpDL?GLXz2HYp&hi0DVLW@mkD8q21C+ve_JSWZIm-tqh4JhKKWcK84^Rr@ z*$aNu;*q+ za+VKJ3gg)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z~oaM!?&Up5VT^%{gi(Q@Z>=(N_a+VjnI^)?dc6H<|FLrgtvtR7$ z$XQWpW<*wvAd0AM?COkXzu480v%J{V8P9&Pt0QN5 zv8ywl{bE-~&hlbcXFU7Gu8y4L#jehH_KRH|Im?S(o$>4!yE<}~7rQ#+*)Mi=u8Bc6G+HU+n70SzhewjAy^t)seHj*wq=& zezB_~XL+%!GoJloS4YnBVpnH8`^Bz~oaM!?&Up5VT^%{gi(Q@Z>=(N_a+VjnI^)?d zc6H<|FLrgtvtR7$$XQWpW<*wvA z1zMm5TA&45paoi>1zMm5TA&45paoi>1zMm5TA&45paoi>1zMm5WP#uO;g_GEe){{L ye*5DupZ^s9_Vd%9fBRSJ|NidZ{GWgMYe6 literal 0 HcmV?d00001 diff --git a/testsuite/gsk/cross-fade.png b/testsuite/gsk/cross-fade.png new file mode 100644 index 0000000000000000000000000000000000000000..8401b23a080d5aeb3671ccf6df929174c04be4cf GIT binary patch literal 1972 zcmeAS@N?(olHy`uVBq!ia0vp^zZe*pA~@K9EbryNKLRPXByV>YhW{YAVDIwD3=Hg< zo-U3d6?5L+am-S76mUJb>frZnHJ|2j-)Ln^iL%sBn%i;9rb_wWzH7f?4s8Dx6<@yp zq3FLme;FQp=agk?;bU}aXISXma6!@Gg@8f{hkz9e2mOU>?)+_-UTGuu?#|yscdr|# zUoW-&T3!8q`MbEk)%$R|Ys31jcJJ$0_N?A}E%<*=bvbU83C8Ejx+)cJU*cFl5sk(`1!kvGb2fjX(O@Y5n)}fYmUAr>mdKI;Vst0Pwm{2LJ#7 literal 0 HcmV?d00001 diff --git a/testsuite/gsk/test-render-nodes.c b/testsuite/gsk/test-render-nodes.c index f3d65f4999..fc29d32e75 100644 --- a/testsuite/gsk/test-render-nodes.c +++ b/testsuite/gsk/test-render-nodes.c @@ -258,6 +258,31 @@ blendmode (void) return container; } +static GskRenderNode * +cross_fade (void) +{ + GskRenderNode *child1; + GskRenderNode *child2; + GskRenderNode *transform; + GskRenderNode *container; + graphene_matrix_t matrix; + + child1 = cairo (); + child2 = cairo2 (); + + graphene_matrix_init_translate (&matrix, &(const graphene_point3d_t) { 50, 50, 0 }); + transform = gsk_transform_node_new (child2, &matrix); + gsk_render_node_unref (child2); + child2 = transform; + + container = gsk_cross_fade_node_new (child1, child2, 0.5); + + gsk_render_node_unref (child1); + gsk_render_node_unref (child2); + + return container; +} + static const struct { const char *name; GskRenderNode * (* func) (void); @@ -266,6 +291,7 @@ static const struct { { "cairo.node", cairo }, { "repeat.node", repeat }, { "blendmode.node", blendmode }, + { "cross-fade.node", cross_fade }, }; /*** test setup ***/