}
}
-void Adaptor::RequestUpdate(bool forceUpdate)
+void Adaptor::RequestUpdate()
{
switch(mState)
{
case PAUSED:
case PAUSED_WHILE_HIDDEN:
{
- if(forceUpdate)
- {
- // Update (and resource upload) without rendering
- mThreadController->RequestUpdateOnce(UpdateMode::SKIP_RENDER);
- }
+ // Update (and resource upload) without rendering
+ mThreadController->RequestUpdateOnce(UpdateMode::SKIP_RENDER);
break;
}
default:
}
}
-void Adaptor::RequestProcessEventsOnIdle(bool forceProcess)
+void Adaptor::RequestProcessEventsOnIdle()
{
- // Only request a notification if the Adaptor is actually running
- // and we haven't installed the idle notification
- if((!mNotificationOnIdleInstalled) && (RUNNING == mState || READY == mState || forceProcess))
+ // Only request a notification if we haven't installed the idle notification
+ // We want to run the processes even when paused
+ if(!mNotificationOnIdleInstalled && STOPPED != mState)
{
- mNotificationOnIdleInstalled = AddIdleEnterer(MakeCallback(this, &Adaptor::ProcessCoreEventsFromIdle), forceProcess);
+ mNotificationOnIdleInstalled = AddIdleEnterer(MakeCallback(this, &Adaptor::ProcessCoreEventsFromIdle), true);
}
}
void Adaptor::OnDamaged(const DamageArea& area)
{
// This is needed for the case where Dali window is partially obscured
- RequestUpdate(false);
+ RequestUpdate();
}
void Adaptor::SurfaceResizePrepare(Dali::RenderSurfaceInterface* surface, SurfaceSize surfaceSize)