MCPcopy Create free account
hub / github.com/baldurk/renderdoc / DisplayRemoteServerPreview

Function DisplayRemoteServerPreview

renderdoccmd/renderdoccmd_android.cpp:339–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339WindowingData DisplayRemoteServerPreview(bool active, const rdcarray<WindowingSystem> &systems)
340{
341 static bool wasActive = false;
342
343 // detect when the preview starts or stops
344 if(wasActive != active)
345 {
346 wasActive = active;
347
348 // if we're opening it, aquire the draw lock, otherwise release it.
349 if(active)
350 {
351 ANDROID_LOG("Locking for preview");
352 m_DrawLock.lock();
353 }
354 else
355 {
356 m_DrawLock.unlock();
357 ANDROID_LOG("Unlocking from preview");
358
359 // when we release it, re-draw the splash
360 DisplayGenericSplash();
361 }
362 }
363
364 WindowingData ret = {WindowingSystem::Unknown};
365
366 if(android_state && android_state->window)
367 ret = CreateAndroidWindowingData(android_state->window);
368
369 return ret;
370}
371
372void DisplayRendererPreview(IReplayController *renderer, TextureDisplay &displayCfg, uint32_t width,
373 uint32_t height, uint32_t numLoops)

Callers

nothing calls this directly

Calls 4

DisplayGenericSplashFunction · 0.85
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected