X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fadaptor-framework%2Foffscreen-window.cpp;h=ffba8e65b1703cd6b0dd55582fdfc38bc582344d;hb=a90b09ccda956cbe4a076aeed1c305f3b49c9e17;hp=ab024a78c78ac551d0ada1f63318396ab49cbc93;hpb=b64876820169d0d123ca39f2a42ef7599a1ca2b1;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/devel-api/adaptor-framework/offscreen-window.cpp b/dali/devel-api/adaptor-framework/offscreen-window.cpp index ab024a7..ffba8e6 100644 --- a/dali/devel-api/adaptor-framework/offscreen-window.cpp +++ b/dali/devel-api/adaptor-framework/offscreen-window.cpp @@ -15,34 +15,31 @@ * */ +// CLASS HEADER +#include + // EXTENRAL INCLUDES #include // INTERNAL INCLUDES #include #include -#include - -// CLASS HEADER -#include 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 ); @@ -116,6 +113,11 @@ Any OffscreenWindow::GetNativeHandle() const return Internal::GetImplementation( *this ).GetNativeHandle(); } +Uint16Pair OffscreenWindow::GetDpi() const +{ + return Internal::GetImplementation(*this).GetDpi(); +} + OffscreenWindow::PostRenderSignalType& OffscreenWindow::PostRenderSignal() { return Internal::GetImplementation( *this ).PostRenderSignal();