Removing unused threadpool 53/305353/1
authorDavid Steele <david.steele@samsung.com>
Wed, 31 Jan 2024 16:52:55 +0000 (16:52 +0000)
committerDavid Steele <david.steele@samsung.com>
Wed, 31 Jan 2024 16:52:55 +0000 (16:52 +0000)
Change-Id: Ia2cccb3bee0068b15f5eff1c23d46ff62cc97b3b

dali/internal/render/common/render-manager.cpp

index 4931f12..9a7bead 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 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.
@@ -22,7 +22,6 @@
 #include <memory.h>
 
 // INTERNAL INCLUDES
-#include <dali/devel-api/threading/thread-pool.h>
 #include <dali/integration-api/core.h>
 #include <dali/internal/common/ordered-set.h>
 
@@ -145,17 +144,12 @@ struct RenderManager::Impl
     stencilBufferAvailable(stencilBufferAvailableParam),
     partialUpdateAvailable(partialUpdateAvailableParam)
   {
-    // Create thread pool with just one thread ( there may be a need to create more threads in the future ).
-    threadPool = std::make_unique<Dali::ThreadPool>();
-    threadPool->Initialize(1u);
-
     uniformBufferManager = std::make_unique<Render::UniformBufferManager>(&graphicsController);
     pipelineCache        = std::make_unique<Render::PipelineCache>(graphicsController);
   }
 
   ~Impl()
   {
-    threadPool.reset(nullptr); // reset now to maintain correct destruction order
     rendererContainer.Clear(); // clear now before the pipeline cache is deleted
   }
 
@@ -204,8 +198,7 @@ struct RenderManager::Impl
   Integration::StencilBufferAvailable stencilBufferAvailable; ///< Whether the stencil buffer is available
   Integration::PartialUpdateAvailable partialUpdateAvailable; ///< Whether the partial update is available
 
-  std::unique_ptr<Dali::ThreadPool> threadPool;        ///< The thread pool
-  Vector<Render::TextureKey>        updatedTextures{}; ///< The updated texture list
+  Vector<Render::TextureKey> updatedTextures{}; ///< The updated texture list
 
   uint32_t    frameCount{0u};                                                    ///< The current frame count
   BufferIndex renderBufferIndex{SceneGraphBuffers::INITIAL_UPDATE_BUFFER_INDEX}; ///< The index of the buffer to read from;