Fixed memory leaks 59/256659/2
authorAdam Bialogonski <adam.b@samsung.com>
Thu, 8 Apr 2021 16:02:15 +0000 (17:02 +0100)
committerAdam Bialogonski <adam.b@samsung.com>
Thu, 8 Apr 2021 16:19:30 +0000 (17:19 +0100)
Change-Id: Idd16d26c91495cc84f98ccc182a0b8cea360e177

automated-tests/src/dali/dali-test-suite-utils/test-graphics-controller.cpp
automated-tests/src/dali/dali-test-suite-utils/test-graphics-controller.h
dali/graphics-api/graphics-controller.h

index 54e8f77..51f0721 100644 (file)
@@ -682,6 +682,16 @@ void TestGraphicsController::Resume()
   mCallStack.PushCall("Resume", "");
 }
 
+void TestGraphicsController::Shutdown()
+{
+  mCallStack.PushCall("Shutdown", "");
+}
+
+void TestGraphicsController::Destroy()
+{
+  mCallStack.PushCall("Destroy", "");
+}
+
 void TestGraphicsController::UpdateTextures(const std::vector<Graphics::TextureUpdateInfo>&       updateInfoList,
                                             const std::vector<Graphics::TextureUpdateSourceInfo>& sourceList)
 {
index d70ed3b..803678e 100644 (file)
@@ -87,6 +87,16 @@ public:
   void Resume() override;
 
   /**
+   * @brief Lifecycle shutdown event
+   */
+  void Shutdown() override;
+
+  /**
+   * @brief Lifecycle destroy event
+   */
+  void Destroy() override;
+
+  /**
    * @brief Executes batch update of textures
    *
    * This function may perform full or partial update of many textures.
index e375acd..db672a0 100644 (file)
@@ -110,6 +110,16 @@ public:
   virtual void Resume() = 0;
 
   /**
+   * @brief Lifecycle shutdown event
+   */
+  virtual void Shutdown() = 0;
+
+  /**
+   * @brief Lifecycle destroy event
+   */
+  virtual void Destroy() = 0;
+
+  /**
    * @brief Executes batch update of textures
    *
    * This function may perform full or partial update of many textures.