/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
// INTERNAL INCLUDES
#include <dali/devel-api/adaptor-framework/accessibility-adaptor.h>
-#include <dali/devel-api/adaptor-framework/imf-manager.h>
#include <dali/devel-api/adaptor-framework/style-monitor.h>
-#include <dali/devel-api/adaptor-framework/render-surface.h>
+#include <dali/integration-api/render-surface.h>
#include <dali/internal/adaptor/common/adaptor-impl.h>
namespace Dali
return *adaptor;
}
-Adaptor& Adaptor::New( Any nativeWindow, const Dali::RenderSurface& surface )
+Adaptor& Adaptor::New( Any nativeWindow, const Dali::RenderSurfaceInterface& surface )
{
return New( nativeWindow, surface, Configuration::APPLICATION_DOES_NOT_HANDLE_CONTEXT_LOSS );
}
-Adaptor& Adaptor::New( Any nativeWindow, const Dali::RenderSurface& surface, Configuration::ContextLoss configuration )
+Adaptor& Adaptor::New( Any nativeWindow, const Dali::RenderSurfaceInterface& surface, Configuration::ContextLoss configuration )
{
- Dali::RenderSurface* pSurface = const_cast<Dali::RenderSurface *>(&surface);
+ Dali::RenderSurfaceInterface* pSurface = const_cast<Dali::RenderSurfaceInterface *>(&surface);
Adaptor* adaptor = Internal::Adaptor::Adaptor::New( nativeWindow, pSurface, configuration, NULL );
return *adaptor;
}
mImpl->Stop();
}
-bool Adaptor::AddIdle( CallbackBase* callback )
+bool Adaptor::AddIdle( CallbackBase* callback, bool hasReturnValue )
{
- return mImpl->AddIdle( callback, false );
+ return mImpl->AddIdle( callback, hasReturnValue, false );
}
void Adaptor::RemoveIdle( CallbackBase* callback )
mImpl->RemoveIdle( callback );
}
-void Adaptor::ReplaceSurface( Any nativeWindow, Dali::RenderSurface& surface )
+void Adaptor::ReplaceSurface( Any nativeWindow, Dali::RenderSurfaceInterface& surface )
{
mImpl->ReplaceSurface(nativeWindow, surface);
}
return mImpl->LanguageChangedSignal();
}
-RenderSurface& Adaptor::GetSurface()
+Dali::RenderSurfaceInterface& Adaptor::GetSurface()
{
return mImpl->GetSurface();
}
return mImpl->GetNativeWindowHandle();
}
+Any Adaptor::GetGraphicsDisplay()
+{
+ return mImpl->GetGraphicsDisplay();
+}
+
void Adaptor::ReleaseSurfaceLock()
{
mImpl->ReleaseSurfaceLock();
mImpl->SetRenderRefreshRate( numberOfVSyncsPerRender );
}
+void Adaptor::SetPreRenderCallback( CallbackBase* callback )
+{
+ mImpl->SetPreRenderCallback( callback );
+}
+
void Adaptor::SetUseHardwareVSync(bool useHardware)
{
mImpl->SetUseHardwareVSync( useHardware );
mImpl->SceneCreated();
}
-void Adaptor::SetViewMode( ViewMode mode )
+void Adaptor::RenderOnce()
{
- mImpl->SetViewMode( mode );
+ mImpl->RenderOnce();
}
-void Adaptor::SetStereoBase( float stereoBase )
+const LogFactoryInterface& Adaptor::GetLogFactory()
{
- mImpl->SetStereoBase( stereoBase );
+ return mImpl->GetLogFactory();
}
-void Adaptor::RenderOnce()
+void Adaptor::RegisterProcessor( Integration::Processor& processor )
{
- mImpl->RenderOnce();
+ mImpl->RegisterProcessor( processor );
+}
+
+void Adaptor::UnregisterProcessor( Integration::Processor& processor )
+{
+ mImpl->UnregisterProcessor( processor );
}
Adaptor::Adaptor()