X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fwindow-system%2Ftizen-wayland%2Fnative-render-surface-ecore-wl.cpp;h=e69e8f151d23668c246895450ce7455bb8283c27;hb=95571a5d593befde9970a98a7be441ce0f771b07;hp=38a44b425fcfaf1425be4c503ff09ace78af5170;hpb=e8e185f7d90010214890c2cb78bdd52c732f63ba;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/window-system/tizen-wayland/native-render-surface-ecore-wl.cpp b/dali/internal/window-system/tizen-wayland/native-render-surface-ecore-wl.cpp index 38a44b4..e69e8f1 100644 --- a/dali/internal/window-system/tizen-wayland/native-render-surface-ecore-wl.cpp +++ b/dali/internal/window-system/tizen-wayland/native-render-surface-ecore-wl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -76,6 +76,11 @@ NativeRenderSurfaceEcoreWl::NativeRenderSurfaceEcoreWl( Dali::PositionSize posit NativeRenderSurfaceEcoreWl::~NativeRenderSurfaceEcoreWl() { + if ( mEGLSurface ) + { + DestroySurface(); + } + // release the surface if we own one if( mOwnSurface ) { @@ -137,6 +142,11 @@ void NativeRenderSurfaceEcoreWl::GetDpi( unsigned int& dpiHorizontal, unsigned i dpiVertical = int( yres + 0.5f ); } +int NativeRenderSurfaceEcoreWl::GetOrientation() const +{ + return 0; +} + void NativeRenderSurfaceEcoreWl::InitializeGraphics() { DALI_LOG_TRACE_METHOD( gNativeSurfaceLogFilter ); @@ -195,6 +205,16 @@ bool NativeRenderSurfaceEcoreWl::ReplaceGraphicsSurface() void NativeRenderSurfaceEcoreWl::MoveResize( Dali::PositionSize positionSize ) { + tbm_surface_queue_error_e error = TBM_SURFACE_QUEUE_ERROR_NONE; + + error = tbm_surface_queue_reset( mTbmQueue, positionSize.width, positionSize.height, mTbmFormat ); + + if( error != TBM_SURFACE_QUEUE_ERROR_NONE ) + { + DALI_LOG_ERROR( "Failed to resize tbm_surface_queue" ); + } + + mPosition = positionSize; } void NativeRenderSurfaceEcoreWl::StartRender()