[Tizen] Remove unused containers - textureDependency + old pan gesture history 84/312684/1 accepted/tizen_7.0_unified tizen_7.0 accepted/tizen/7.0/unified/20240614.164333
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 13 Jun 2024 04:39:06 +0000 (13:39 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 13 Jun 2024 04:39:06 +0000 (13:39 +0900)
Change-Id: I50821e971bef33562d4a8dcdb9f70a9b1be7b623
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/render/common/render-manager.cpp
dali/internal/update/gestures/scene-graph-pan-gesture.cpp

index 6a77d9b..a1dffa2 100644 (file)
@@ -189,7 +189,6 @@ struct RenderManager::Impl
 
   std::unique_ptr<Dali::ThreadPool> threadPool;            ///< The thread pool
   Vector<Graphics::Texture*>        boundTextures;         ///< The textures bound for rendering
-  Vector<Graphics::Texture*>        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
index 622948f..f987d21 100644 (file)
@@ -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
     {