[client] tests: keep splash out of captures

Hide the startup splash immediately after overlay initialization when a
render-pipeline capture is requested. This occurs before the frame
thread is released, so no EGL surface buffer can contain splash pixels.
This commit is contained in:
Geoffrey McRae
2026-08-08 01:09:25 +10:00
parent 4e82af162d
commit e9d4b2f563
2 changed files with 5 additions and 4 deletions

View File

@@ -99,10 +99,11 @@ static void drawRadialGradient(ImDrawList * list, int x, int y, int w, int h,
static bool splash_init(void ** udata, const void * params)
{
atomic_store_explicit(&l_requestedShow, true, memory_order_relaxed);
const bool show = strcmp(g_params.transport, "test") != 0;
atomic_store_explicit(&l_requestedShow, show, memory_order_relaxed);
atomic_store_explicit(&l_fading, false, memory_order_relaxed);
l_appliedShow = true;
l_state = SPLASH_VISIBLE;
l_appliedShow = show;
l_state = show ? SPLASH_VISIBLE : SPLASH_HIDDEN;
l_fadeStart = 0;
overlayLoadSVG(b_lg_logo_svg, b_lg_logo_svg_size, &l_logo, 200, 200);

View File

@@ -140,7 +140,7 @@ int runClient(const FormatCase & format, const char * damage,
"test:realtime=no",
captureFile,
captureFrame,
"test:captureDelay=12",
"test:captureDelay=1",
"win:size=" + size,
"win:autoResize=no",
"win:allowResize=no",