X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fwindow-system%2Ftizen-wayland%2Fdisplay-connection-impl-ecore-wl.cpp;h=f639ed538caec8f8dc3673548d6d295238c0633a;hb=e8e185f7d90010214890c2cb78bdd52c732f63ba;hp=ca46418f47eea00bf5789b296b2706300e445713;hpb=44ac6b074a4d7d2f9474331a364e4629c0bce11a;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/window-system/tizen-wayland/display-connection-impl-ecore-wl.cpp b/dali/internal/window-system/tizen-wayland/display-connection-impl-ecore-wl.cpp index ca46418..f639ed5 100755 --- a/dali/internal/window-system/tizen-wayland/display-connection-impl-ecore-wl.cpp +++ b/dali/internal/window-system/tizen-wayland/display-connection-impl-ecore-wl.cpp @@ -17,6 +17,7 @@ // CLASS HEADER #include +#include // EXTERNAL_HEADERS #include @@ -45,13 +46,14 @@ DisplayConnection* DisplayConnectionEcoreWl::New() DisplayConnectionEcoreWl::DisplayConnectionEcoreWl() : mDisplay( NULL ), - mSurfaceType( RenderSurface::WINDOW_RENDER_SURFACE ) + mSurfaceType( Integration::RenderSurface::WINDOW_RENDER_SURFACE ), + mGraphics( nullptr ) { } DisplayConnectionEcoreWl::~DisplayConnectionEcoreWl() { - if( mSurfaceType == RenderSurface::NATIVE_RENDER_SURFACE ) + if( mSurfaceType == Integration::RenderSurface::NATIVE_RENDER_SURFACE ) { ReleaseNativeDisplay(); } @@ -66,9 +68,10 @@ void DisplayConnectionEcoreWl::ConsumeEvents() { } -bool DisplayConnectionEcoreWl::InitializeEgl(EglInterface& egl) +bool DisplayConnectionEcoreWl::InitializeGraphics() { - EglImplementation& eglImpl = static_cast(egl); + auto eglGraphics = static_cast(mGraphics); + EglImplementation& eglImpl = eglGraphics->GetEglImplementation(); if( !eglImpl.InitializeGles( mDisplay ) ) { @@ -79,11 +82,11 @@ bool DisplayConnectionEcoreWl::InitializeEgl(EglInterface& egl) return true; } -void DisplayConnectionEcoreWl::SetSurfaceType( RenderSurface::Type type ) +void DisplayConnectionEcoreWl::SetSurfaceType( Integration::RenderSurface::Type type ) { mSurfaceType = type; - if( mSurfaceType == RenderSurface::NATIVE_RENDER_SURFACE ) + if( mSurfaceType == Integration::RenderSurface::NATIVE_RENDER_SURFACE ) { mDisplay = GetNativeDisplay(); } @@ -98,6 +101,11 @@ void DisplayConnectionEcoreWl::SetSurfaceType( RenderSurface::Type type ) } } +void DisplayConnectionEcoreWl::SetGraphicsInterface( GraphicsInterface& graphics ) +{ + mGraphics = &graphics; +} + EGLNativeDisplayType DisplayConnectionEcoreWl::GetNativeDisplay() { return EGLNativeDisplayType();