[macos] Prevent race condition while creating the EGL Window 24/250924/2
authorWander Lairson Costa <wander.lairson@gmail.com>
Tue, 29 Sep 2020 18:50:49 +0000 (15:50 -0300)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 5 Jan 2021 21:10:33 +0000 (21:10 +0000)
commitdc392fa521e1675fe7e1a9c5316009a8f40d0e91
tree81d4124ac4edd4612edd595389602f5d0b8c7a84
parentb89ffefa7789530e94434cb7b8189e0c68aa2348
[macos] Prevent race condition while creating the EGL Window

eglCreateWindowSurface must the called before the CAlayer is initialized
in the run loop. We we StartRender (which does nothing) to synchronize
the graphics initialization in the Render Thread with the main thread.

Change-Id: I85be6682ec8a25672a548cf085ef15500cd2993f
dali/internal/adaptor/common/combined-update-render-controller.cpp
dali/internal/window-system/file.list
dali/internal/window-system/macos/render-surface-factory-mac.cpp
dali/internal/window-system/macos/window-render-surface-cocoa.cpp [new file with mode: 0644]
dali/internal/window-system/macos/window-render-surface-cocoa.h [new file with mode: 0644]