X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fadaptor-framework%2Foffscreen-application.cpp;h=252aa80f46ce41d1bd6d9a03216ecab1004d1070;hb=3fc35c7403614a804536a41c80ece27de8398081;hp=5c1ea07f94af3b7b6bb954818325ebb167cae009;hpb=f00e7017d4510c50ae325ee9052eb65f75b52be2;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/devel-api/adaptor-framework/offscreen-application.cpp b/dali/devel-api/adaptor-framework/offscreen-application.cpp index 5c1ea07..252aa80 100644 --- a/dali/devel-api/adaptor-framework/offscreen-application.cpp +++ b/dali/devel-api/adaptor-framework/offscreen-application.cpp @@ -15,83 +15,74 @@ * */ -// INTERNAL INCLUDES -#include - // CLASS HEADER #include +// INTERNAL INCLUDES +#include + 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 ); + Dali::Any surface; + IntrusivePtr impl = Internal::OffscreenApplication::New(width, height, surface, isTranslucent, renderMode); - OffscreenApplication offscreenApplication = OffscreenApplication( impl.Get() ); + OffscreenApplication offscreenApplication = OffscreenApplication(impl.Get()); return offscreenApplication; } -OffscreenApplication OffscreenApplication::New( Dali::Any surface, bool isTranslucent ) +OffscreenApplication OffscreenApplication::New(Dali::Any surface, bool isTranslucent, OffscreenApplication::RenderMode renderMode) { - IntrusivePtr< Internal::OffscreenApplication > impl = Internal::OffscreenApplication::New( 0, 0, surface, isTranslucent ); + IntrusivePtr impl = Internal::OffscreenApplication::New(0, 0, surface, isTranslucent, renderMode); - OffscreenApplication offscreenApplication = OffscreenApplication( impl.Get() ); + OffscreenApplication offscreenApplication = OffscreenApplication(impl.Get()); return offscreenApplication; } -OffscreenApplication::OffscreenApplication() -{ -} +OffscreenApplication::OffscreenApplication() = default; -OffscreenApplication::OffscreenApplication( const OffscreenApplication& offscreenApplication ) -: BaseHandle( offscreenApplication ) -{ -} +OffscreenApplication::OffscreenApplication(const OffscreenApplication& offscreenApplication) = default; -OffscreenApplication& OffscreenApplication::operator=( const OffscreenApplication& offscreenApplication ) -{ - if( *this != offscreenApplication ) - { - BaseHandle::operator=( offscreenApplication ); - } - return *this; -} +OffscreenApplication& OffscreenApplication::operator=(const OffscreenApplication& offscreenApplication) = default; -OffscreenApplication::~OffscreenApplication() -{ -} +OffscreenApplication::~OffscreenApplication() = default; -void OffscreenApplication::Run() +void OffscreenApplication::Start() { - Internal::GetImplementation( *this ).Run(); + Internal::GetImplementation(*this).Start(); } void OffscreenApplication::Stop() { - Internal::GetImplementation( *this ).Stop(); + Internal::GetImplementation(*this).Stop(); } Dali::OffscreenWindow OffscreenApplication::GetWindow() { - return Internal::GetImplementation( *this ).GetWindow(); + return Internal::GetImplementation(*this).GetWindow(); +} + +void OffscreenApplication::RenderOnce() +{ + Internal::GetImplementation(*this).RenderOnce(); } OffscreenApplication::OffscreenApplicationSignalType& OffscreenApplication::InitSignal() { - return Internal::GetImplementation( *this ).InitSignal(); + return Internal::GetImplementation(*this).InitSignal(); } OffscreenApplication::OffscreenApplicationSignalType& OffscreenApplication::TerminateSignal() { - return Internal::GetImplementation( *this ).TerminateSignal(); + return Internal::GetImplementation(*this).TerminateSignal(); } -OffscreenApplication::OffscreenApplication( Internal::OffscreenApplication* offscreenApplication ) -: BaseHandle( offscreenApplication ) +OffscreenApplication::OffscreenApplication(Internal::OffscreenApplication* offscreenApplication) +: BaseHandle(offscreenApplication) { } -} // namespace Dali +} // namespace Dali