From: Heeyong Song Date: Thu, 11 May 2023 08:22:48 +0000 (+0900) Subject: [Tizen] Remove list item in error case X-Git-Tag: accepted/tizen/7.0/unified/20230515.132833~3^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=commitdiff_plain;h=4e9cc144f21b3a87fadd521134eb9dd75bae198f [Tizen] Remove list item in error case Change-Id: I2835fef3080aa022495816bc7ec6bf9e43c83f24 --- diff --git a/dali/internal/window-system/common/window-render-surface.cpp b/dali/internal/window-system/common/window-render-surface.cpp index bfc4462..ed66eb5 100644 --- a/dali/internal/window-system/common/window-render-surface.cpp +++ b/dali/internal/window-system/common/window-render-surface.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Samsung Electronics Co., Ltd. + * Copyright (c) 2023 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. @@ -513,18 +513,18 @@ bool WindowRenderSurface::PreRender(bool resizingSurface, const std::vector surfaceSize = scene.GetCurrentSurfaceRect(); //update surface size - mPositionSize.width = surfaceSize.width; + mPositionSize.width = surfaceSize.width; mPositionSize.height = surfaceSize.height; DALI_LOG_RELEASE_INFO("Window is resizing, (%d, %d), [%d x %d]\n", mPositionSize.x, mPositionSize.y, mPositionSize.width, mPositionSize.height); @@ -764,13 +764,6 @@ void WindowRenderSurface::ProcessFrameCallback() void WindowRenderSurface::OnFileDescriptorEventDispatched(FileDescriptorMonitor::EventType eventBitMask, int fileDescriptor) { - if(!(eventBitMask & FileDescriptorMonitor::FD_READABLE)) - { - DALI_LOG_ERROR("WindowRenderSurface::OnFileDescriptorEventDispatched: file descriptor error [%d]\n", eventBitMask); - close(fileDescriptor); - return; - } - DALI_LOG_RELEASE_INFO("WindowRenderSurface::OnFileDescriptorEventDispatched: Frame rendered [%d]\n", fileDescriptor); std::unique_ptr callbackInfo; @@ -788,7 +781,7 @@ void WindowRenderSurface::OnFileDescriptorEventDispatched(FileDescriptorMonitor: } // Call the connected callback - if(callbackInfo) + if(callbackInfo && (eventBitMask & FileDescriptorMonitor::FD_READABLE)) { for(auto&& iter : (callbackInfo)->callbacks) { @@ -809,7 +802,7 @@ void WindowRenderSurface::SetBufferDamagedRects(const std::vector>& da Dali::Integration::Scene scene = mScene.GetHandle(); if(scene) { - surfaceRect = scene.GetCurrentSurfaceRect(); + surfaceRect = scene.GetCurrentSurfaceRect(); int32_t totalAngle = scene.GetCurrentSurfaceOrientation() + scene.GetCurrentScreenOrientation(); if(totalAngle >= 360) {