[Tizen] Add OffscreenApplication
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / offscreen-window.cpp
index b7438d4..ab024a7 100644 (file)
 
 namespace Dali
 {
-OffscreenWindow OffscreenWindow::New( OffscreenApplication offscreenApplication, uint16_t width, uint16_t height, bool isTranslucent )
+OffscreenWindow OffscreenWindow::New( uint16_t width, uint16_t height, bool isTranslucent )
 {
   auto windowFactory = Dali::Internal::GetOffscreenWindowFactory();
-  Dali::Any surface;
+  Any surface;
   IntrusivePtr < Internal::OffscreenWindow > impl = windowFactory->CreateOffscreenWindow( width, height, surface, isTranslucent ).release();
   OffscreenWindow window = OffscreenWindow( impl.Get() );
-  impl->Initialize( &Internal::GetImplementation( offscreenApplication ), false );
+  impl->Initialize( false );
 
   return window;
 }
 
-OffscreenWindow OffscreenWindow::New( OffscreenApplication offscreenApplication, Dali::Any surface, bool isTranslucent )
+OffscreenWindow OffscreenWindow::New( Any surface, bool isTranslucent )
 {
   auto windowFactory = Dali::Internal::GetOffscreenWindowFactory();
   IntrusivePtr < Internal::OffscreenWindow > impl = windowFactory->CreateOffscreenWindow( 0, 0, surface, isTranslucent ).release();
   OffscreenWindow window = OffscreenWindow( impl.Get() );
-  impl->Initialize( &Internal::GetImplementation( offscreenApplication ), false );
+  impl->Initialize( false );
 
   return window;
 }
@@ -101,7 +101,7 @@ uint32_t OffscreenWindow::GetLayerCount() const
   return Internal::GetImplementation( *this ).GetLayerCount();
 }
 
-Dali::Layer OffscreenWindow::GetLayer( uint32_t depth ) const
+Layer OffscreenWindow::GetLayer( uint32_t depth ) const
 {
   return Internal::GetImplementation( *this ).GetLayer( depth );
 }
@@ -111,6 +111,11 @@ OffscreenWindow::WindowSize OffscreenWindow::GetSize() const
   return Internal::GetImplementation( *this ).GetSize();
 }
 
+Any OffscreenWindow::GetNativeHandle() const
+{
+  return Internal::GetImplementation( *this ).GetNativeHandle();
+}
+
 OffscreenWindow::PostRenderSignalType& OffscreenWindow::PostRenderSignal()
 {
   return Internal::GetImplementation( *this ).PostRenderSignal();