#include <dali/integration-api/debug.h>
#include <dali/integration-api/core.h>
#include <dali/integration-api/events/touch-event-integ.h>
-#include <dali/integration-api/events/notification-event.h>
// INTERNAL INCLUDES
#include <base/update-render-controller.h>
mCore = Integration::Core::New( *this, *mPlatformAbstraction, *mGLES, *eglSyncImpl, *mGestureManager );
- mNotificationTrigger = new TriggerEvent( boost::bind(&Adaptor::SendNotificationEvent, this) );
+ mNotificationTrigger = new TriggerEvent( boost::bind(&Adaptor::ProcessCoreEvents, this) );
mVSyncMonitor = new VSyncMonitor;
mState = RUNNING;
- SendNotificationEvent(); // Ensure any startup messages are processed.
+ ProcessCoreEvents(); // Ensure any startup messages are processed.
if ( !mFeedbackController )
{
(*iter)->OnResume();
}
- SendNotificationEvent(); // Ensure any outstanding messages are processed
+ ProcessCoreEvents(); // Ensure any outstanding messages are processed
}
}
// flush the event queue to give update and render threads chance
// to start processing messages for new camera setup etc as soon as possible
- SendNotificationEvent();
+ ProcessCoreEvents();
// this method is synchronous
mUpdateRenderController->ReplaceSurface(internalSurface);
}
}
-void Adaptor::RequestNotificationEventOnIdle()
+void Adaptor::RequestProcessEventsOnIdle()
{
// Only request a notification if the Adaptor is actually running
if ( RUNNING == mState )
{
return;
}
- mNotificationOnIdleInstalled = AddIdle( boost::bind( &Adaptor::SendNotificationEventFromIdle, this ) );
+ mNotificationOnIdleInstalled = AddIdle( boost::bind( &Adaptor::ProcessCoreEventsFromIdle, this ) );
}
}
mLanguageChangedSignalV2.Emit( mAdaptor );
}
-void Adaptor::SendNotificationEvent()
-{
- // Notification events are sent in order to process messages queued (internally) during rendering.
- Integration::NotificationEvent event;
- QueueCoreEvent(event);
- ProcessCoreEvents();
-}
-
void Adaptor::RequestUpdateOnce()
{
if( PAUSED_WHILE_HIDDEN != mState )
}
}
-void Adaptor::SendNotificationEventFromIdle()
+void Adaptor::ProcessCoreEventsFromIdle()
{
- SendNotificationEvent();
+ ProcessCoreEvents();
// the idle handle automatically un-installs itself
mNotificationOnIdleInstalled = false;