[Tizen] Add Adaptor API for UpdateOnce() 89/315989/1 accepted/tizen/8.0/unified/20240823.183216
authorEunki Hong <eunkiki.hong@samsung.com>
Sat, 13 Apr 2024 15:32:12 +0000 (00:32 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Mon, 12 Aug 2024 07:34:03 +0000 (16:34 +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 07e78a699e1ae350e84d97a8a90e8dd769cacb27..ccfaf4567ff30d188c75212c62240d44f5192ec0 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTEGRATION_ADAPTOR_H
 
 /*
- * 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.
@@ -394,9 +394,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 5d3fbdbeb256359a11ece264917d3303e42ec37d..5a2a3e849bf5c6c8848d99612ad1e5ad72400594 100644 (file)
@@ -251,6 +251,11 @@ void Adaptor::SurfaceResizeComplete(Dali::RenderSurfaceInterface* surface, Surfa
   mImpl->SurfaceResizeComplete(surface, surfaceSize);
 }
 
+void Adaptor::UpdateOnce()
+{
+  mImpl->RequestUpdateOnce();
+}
+
 void Adaptor::RenderOnce()
 {
   mImpl->RenderOnce();