| 337 | } |
| 338 | |
| 339 | WindowingData 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 | |
| 372 | void DisplayRendererPreview(IReplayController *renderer, TextureDisplay &displayCfg, uint32_t width, |
| 373 | uint32_t height, uint32_t numLoops) |
nothing calls this directly
no test coverage detected