*
*/
+// CLASS HEADER
+#include <dali/devel-api/adaptor-framework/offscreen-window.h>
+
// EXTENRAL INCLUDES
#include <dali/public-api/actors/layer.h>
// INTERNAL INCLUDES
#include <dali/internal/offscreen/common/offscreen-application-impl.h>
#include <dali/internal/offscreen/common/offscreen-window-impl.h>
-#include <dali/internal/offscreen/common/offscreen-window-factory.h>
-
-// CLASS HEADER
-#include <dali/devel-api/adaptor-framework/offscreen-window.h>
namespace Dali
{
OffscreenWindow OffscreenWindow::New( uint16_t width, uint16_t height, bool isTranslucent )
{
- auto windowFactory = Dali::Internal::GetOffscreenWindowFactory();
Any surface;
- IntrusivePtr < Internal::OffscreenWindow > impl = windowFactory->CreateOffscreenWindow( width, height, surface, isTranslucent ).release();
+ IntrusivePtr< Internal::OffscreenWindow > impl = Internal::OffscreenWindow::New( width, height, surface, isTranslucent );
OffscreenWindow window = OffscreenWindow( impl.Get() );
impl->Initialize( false );
return window;
}
-OffscreenWindow OffscreenWindow::New( Any surface, bool isTranslucent )
+OffscreenWindow OffscreenWindow::New( Any surface )
{
- auto windowFactory = Dali::Internal::GetOffscreenWindowFactory();
- IntrusivePtr < Internal::OffscreenWindow > impl = windowFactory->CreateOffscreenWindow( 0, 0, surface, isTranslucent ).release();
+ IntrusivePtr< Internal::OffscreenWindow > impl = Internal::OffscreenWindow::New( 0, 0, surface, false );
OffscreenWindow window = OffscreenWindow( impl.Get() );
impl->Initialize( false );
return Internal::GetImplementation( *this ).GetNativeHandle();
}
+Uint16Pair OffscreenWindow::GetDpi() const
+{
+ return Internal::GetImplementation(*this).GetDpi();
+}
+
OffscreenWindow::PostRenderSignalType& OffscreenWindow::PostRenderSignal()
{
return Internal::GetImplementation( *this ).PostRenderSignal();