From: Eunki, Hong Date: Tue, 13 May 2025 06:34:52 +0000 (+0900) Subject: Apply sorted render item only if required X-Git-Tag: accepted/tizen/unified/20250515.075542~1^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F324113%2F2;p=platform%2Fcore%2Fuifw%2Fdali-core.git Apply sorted render item only if required Change-Id: I5c08b2f34bb4bf0d2d92392fe1066a5058908641 Signed-off-by: Eunki, Hong --- diff --git a/dali/internal/update/manager/render-instruction-processor.cpp b/dali/internal/update/manager/render-instruction-processor.cpp index 52270a056..87c599975 100644 --- a/dali/internal/update/manager/render-instruction-processor.cpp +++ b/dali/internal/update/manager/render-instruction-processor.cpp @@ -520,15 +520,15 @@ inline void RenderInstructionProcessor::SortRenderItems(BufferIndex bufferIndex, if(needToSort) { std::stable_sort(mSortingHelper.begin(), mSortingHelper.end(), mSortComparitors[comparitorIndex]); - } - // Reorder / re-populate the RenderItems in the RenderList to correct order based on the sortinghelper. - DALI_LOG_INFO(gRenderListLogFilter, Debug::Verbose, "Sorted Transparent List:\n"); - RenderItemContainer::Iterator renderListIter = renderList.GetContainer().Begin(); - for(uint32_t index = 0; index < renderableCount; ++index, ++renderListIter) - { - *renderListIter = mSortingHelper[index].renderItem; - DALI_LOG_INFO(gRenderListLogFilter, Debug::Verbose, " sortedList[%d] = node : %x renderer : %x\n", index, mSortingHelper[index].renderItem->mNode, mSortingHelper[index].renderItem->mRenderer.Get()); + // Reorder / re-populate the RenderItems in the RenderList to correct order based on the sortinghelper. + DALI_LOG_INFO(gRenderListLogFilter, Debug::Verbose, "Sorted Transparent List:\n"); + RenderItemContainer::Iterator renderListIter = renderList.GetContainer().Begin(); + for(uint32_t index = 0; index < renderableCount; ++index, ++renderListIter) + { + *renderListIter = mSortingHelper[index].renderItem; + DALI_LOG_INFO(gRenderListLogFilter, Debug::Verbose, " sortedList[%d] = node : %x renderer : %x\n", index, mSortingHelper[index].renderItem->mNode, mSortingHelper[index].renderItem->mRenderer.Get()); + } } }