From: Eunki, Hong Date: Thu, 13 Jun 2024 04:39:06 +0000 (+0900) Subject: [Tizen] Remove unused containers - textureDependency + old pan gesture history X-Git-Tag: accepted/tizen/7.0/unified/20240614.164333^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ceb08d9a8d3b1dca56547c7eae043679573f7119;p=platform%2Fcore%2Fuifw%2Fdali-core.git [Tizen] Remove unused containers - textureDependency + old pan gesture history Change-Id: I50821e971bef33562d4a8dcdb9f70a9b1be7b623 Signed-off-by: Eunki, Hong --- diff --git a/dali/internal/render/common/render-manager.cpp b/dali/internal/render/common/render-manager.cpp index 6a77d9b..a1dffa2 100644 --- a/dali/internal/render/common/render-manager.cpp +++ b/dali/internal/render/common/render-manager.cpp @@ -189,7 +189,6 @@ struct RenderManager::Impl std::unique_ptr threadPool; ///< The thread pool Vector boundTextures; ///< The textures bound for rendering - Vector textureDependencyList; ///< The dependency list of bound textures bool commandBufferSubmitted{false}; }; @@ -890,15 +889,6 @@ void RenderManager::RenderScene(Integration::RenderStatus& status, Integration:: // this ensures we will set view and projection matrix once per program per camera mImpl->programController.ResetProgramMatrices(); - if(instruction.mFrameBuffer) - { - // For each offscreen buffer, update the dependency list with the new texture id used by this frame buffer. - for(unsigned int i0 = 0, i1 = instruction.mFrameBuffer->GetColorAttachmentCount(); i0 < i1; ++i0) - { - mImpl->textureDependencyList.PushBack(instruction.mFrameBuffer->GetTexture(i0)); - } - } - if(!instruction.mIgnoreRenderToFbo && (instruction.mFrameBuffer != nullptr)) { // Offscreen buffer rendering diff --git a/dali/internal/update/gestures/scene-graph-pan-gesture.cpp b/dali/internal/update/gestures/scene-graph-pan-gesture.cpp index 622948f..f987d21 100644 --- a/dali/internal/update/gestures/scene-graph-pan-gesture.cpp +++ b/dali/internal/update/gestures/scene-graph-pan-gesture.cpp @@ -266,6 +266,11 @@ bool PanGesture::ReadGestures(FrameGestureInfo& info, unsigned int currentTimest if(currentGesture.state == GestureState::STARTED) { info.justStarted = true; + + // Clear pan data. + mPanHistory.clear(); + mPredictionHistory.clear(); + // clear just finished as we have started new pan info.justFinished = false; } @@ -301,9 +306,14 @@ bool PanGesture::ReadAndResampleGestures(FrameGestureInfo& info, unsigned int cu if(lastReadGesture.state == GestureState::STARTED) { + info.justStarted = true; + + // Clear pan data. + mPanHistory.clear(); + mPredictionHistory.clear(); + // Clear just finished as we have started new pan. info.justFinished = false; - info.justStarted = true; } else {