[Tizen] Add Adaptor API for UpdateOnce() 17/315817/1 accepted/tizen/7.0/unified/20240809.085617
authorEunki Hong <eunkiki.hong@samsung.com>
Sat, 13 Apr 2024 15:32:12 +0000 (00:32 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 8 Aug 2024 04:56:28 +0000 (13:56 +0900)
RenderOnce() API request to full-swap next frame.
Let we make new API to wake-up the render thread only one time
if we don't want full swap

Change-Id: I4383f3da3bd746254e901f3ed723d66e11cf6015
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
dali/integration-api/adaptor-framework/adaptor.h
dali/internal/adaptor/common/adaptor.cpp

index 9bcb8c6..a3459a5 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTEGRATION_ADAPTOR_H
 
 /*
- * Copyright (c) 2021 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.
@@ -392,9 +392,14 @@ public:
   void SurfaceResizeComplete(Dali::RenderSurfaceInterface* surface, SurfaceSize surfaceSize);
 
   /**
-   * @brief Renders once more even if we're paused
+   * @brief Update once. It will not wake up the update thread if we're paused.
    * @note Will not work if the window is hidden.
    */
+  void UpdateOnce();
+
+  /**
+   * @brief Renders once more even if we're paused
+   */
   void RenderOnce();
 
   /**
index d320604..dc05807 100644 (file)
@@ -220,6 +220,11 @@ void Adaptor::SurfaceResizeComplete(Dali::RenderSurfaceInterface* surface, Surfa
   mImpl->SurfaceResizeComplete(surface, surfaceSize);
 }
 
+void Adaptor::UpdateOnce()
+{
+  mImpl->RequestUpdateOnce();
+}
+
 void Adaptor::RenderOnce()
 {
   mImpl->RenderOnce();