/*
- * 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.
NativeRenderSurfaceEcoreWl::~NativeRenderSurfaceEcoreWl()
{
+ if ( mEGLSurface )
+ {
+ DestroySurface();
+ }
+
// release the surface if we own one
if( mOwnSurface )
{
dpiVertical = int( yres + 0.5f );
}
+int NativeRenderSurfaceEcoreWl::GetOrientation() const
+{
+ return 0;
+}
+
void NativeRenderSurfaceEcoreWl::InitializeGraphics()
{
DALI_LOG_TRACE_METHOD( gNativeSurfaceLogFilter );
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()