From 07c54c0bbb79ddccfb308a6078912cb5274a8e89 Mon Sep 17 00:00:00 2001 From: Adam Bialogonski Date: Thu, 8 Apr 2021 17:02:15 +0100 Subject: [PATCH] Fixed memory leaks Change-Id: Idd16d26c91495cc84f98ccc182a0b8cea360e177 --- .../dali/dali-test-suite-utils/test-graphics-controller.cpp | 10 ++++++++++ .../src/dali/dali-test-suite-utils/test-graphics-controller.h | 10 ++++++++++ dali/graphics-api/graphics-controller.h | 10 ++++++++++ 3 files changed, 30 insertions(+) diff --git a/automated-tests/src/dali/dali-test-suite-utils/test-graphics-controller.cpp b/automated-tests/src/dali/dali-test-suite-utils/test-graphics-controller.cpp index 54e8f77..51f0721 100644 --- a/automated-tests/src/dali/dali-test-suite-utils/test-graphics-controller.cpp +++ b/automated-tests/src/dali/dali-test-suite-utils/test-graphics-controller.cpp @@ -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& updateInfoList, const std::vector& sourceList) { diff --git a/automated-tests/src/dali/dali-test-suite-utils/test-graphics-controller.h b/automated-tests/src/dali/dali-test-suite-utils/test-graphics-controller.h index d70ed3b..803678e 100644 --- a/automated-tests/src/dali/dali-test-suite-utils/test-graphics-controller.h +++ b/automated-tests/src/dali/dali-test-suite-utils/test-graphics-controller.h @@ -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. diff --git a/dali/graphics-api/graphics-controller.h b/dali/graphics-api/graphics-controller.h index e375acd..db672a0 100644 --- a/dali/graphics-api/graphics-controller.h +++ b/dali/graphics-api/graphics-controller.h @@ -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. -- 2.7.4