Revert "[Tizen] Add GlWindow"
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / offscreen-application.cpp
index 5c1ea07..49d98ec 100644 (file)
  *
  */
 
-// INTERNAL INCLUDES
-#include <dali/internal/offscreen/common/offscreen-application-impl.h>
-
 // CLASS HEADER
 #include <dali/devel-api/adaptor-framework/offscreen-application.h>
 
+// INTERNAL INCLUDES
+#include <dali/internal/offscreen/common/offscreen-application-impl.h>
+
 namespace Dali
 {
-OffscreenApplication OffscreenApplication::New( uint16_t width, uint16_t height, bool isTranslucent )
+OffscreenApplication OffscreenApplication::New( uint16_t width, uint16_t height, bool isTranslucent, OffscreenApplication::RenderMode renderMode )
 {
   Dali::Any surface;
-  IntrusivePtr< Internal::OffscreenApplication > impl = Internal::OffscreenApplication::New( width, height, surface, isTranslucent );
+  IntrusivePtr< Internal::OffscreenApplication > impl = Internal::OffscreenApplication::New( width, height, surface, isTranslucent, renderMode );
 
   OffscreenApplication offscreenApplication = OffscreenApplication( impl.Get() );
 
   return offscreenApplication;
 }
 
-OffscreenApplication OffscreenApplication::New( Dali::Any surface, bool isTranslucent )
+OffscreenApplication OffscreenApplication::New( Dali::Any surface, OffscreenApplication::RenderMode renderMode )
 {
-  IntrusivePtr< Internal::OffscreenApplication > impl = Internal::OffscreenApplication::New( 0, 0, surface, isTranslucent );
+  IntrusivePtr< Internal::OffscreenApplication > impl = Internal::OffscreenApplication::New( 0, 0, surface, false, renderMode );
 
   OffscreenApplication offscreenApplication = OffscreenApplication( impl.Get() );
 
@@ -64,9 +64,9 @@ OffscreenApplication::~OffscreenApplication()
 {
 }
 
-void OffscreenApplication::Run()
+void OffscreenApplication::Start()
 {
-  Internal::GetImplementation( *this ).Run();
+  Internal::GetImplementation( *this ).Start();
 }
 
 void OffscreenApplication::Stop()
@@ -79,6 +79,11 @@ Dali::OffscreenWindow OffscreenApplication::GetWindow()
   return Internal::GetImplementation( *this ).GetWindow();
 }
 
+void OffscreenApplication::RenderOnce()
+{
+  Internal::GetImplementation( *this ).RenderOnce();
+}
+
 OffscreenApplication::OffscreenApplicationSignalType& OffscreenApplication::InitSignal()
 {
   return Internal::GetImplementation( *this ).InitSignal();