From ceb08d9a8d3b1dca56547c7eae043679573f7119 Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Thu, 13 Jun 2024 13:39:06 +0900 Subject: [PATCH] [Tizen] Remove unused containers - textureDependency + old pan gesture history Change-Id: I50821e971bef33562d4a8dcdb9f70a9b1be7b623 Signed-off-by: Eunki, Hong --- dali/internal/render/common/render-manager.cpp | 10 ---------- dali/internal/update/gestures/scene-graph-pan-gesture.cpp | 12 +++++++++++- 2 files changed, 11 insertions(+), 11 deletions(-) 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 { -- 2.7.4