Added pre-render callback to Adaptor 04/188404/5
authorDavid Steele <david.steele@samsung.com>
Tue, 4 Sep 2018 16:32:05 +0000 (17:32 +0100)
committerDavid Steele <david.steele@samsung.com>
Fri, 7 Sep 2018 13:20:59 +0000 (14:20 +0100)
commit37d8d7dca35290d61aeb300f8f97bb993998d4e4
treef977bf3028ab92d2c1ac11360acc428cd5c3de4d
parent3d1042f4c6dc335f144ae4cda5e65cff04392ae3
Added pre-render callback to Adaptor

New API to add a pre-render hook - this callback gets called from
the Update/Render thread before rendering starts. If the callback
returns false, then it removes the callback, otherwise the callback
will be called every frame.

No DALi Event API can be called from this callback, doing so will
result in instability and crashes.

To use the callback, your application needs to call the following code:

  Dali::Adaptor::Get().SetPreRenderCallback( Dali::MakeCallback( this, &SomeClass::OnPreRender ) );

or some other variant of MakeCallback.

Change-Id: I014842f0adcb004b94435353fba869d886471b93
Signed-off-by: David Steele <david.steele@samsung.com>
dali/integration-api/adaptor.h
dali/internal/adaptor/common/adaptor-impl.cpp
dali/internal/adaptor/common/adaptor-impl.h
dali/internal/adaptor/common/adaptor.cpp
dali/internal/adaptor/common/combined-update-render-controller.cpp
dali/internal/adaptor/common/combined-update-render-controller.h
dali/internal/adaptor/common/thread-controller-interface.h
dali/internal/system/common/thread-controller.cpp
dali/internal/system/common/thread-controller.h