[dali_2.2.34] Merge branch 'devel/master' 70/295470/1
authorDavid Steele <david.steele@samsung.com>
Fri, 7 Jul 2023 11:01:32 +0000 (12:01 +0100)
committerDavid Steele <david.steele@samsung.com>
Fri, 7 Jul 2023 11:01:32 +0000 (12:01 +0100)
Change-Id: If84a1dba9bc15240a34e7e02082198950cc9266c

examples/frame-callback/frame-callback.cpp
examples/frame-callback/frame-callback.h
packaging/com.samsung.dali-demo.spec

index 88c66f6..d1bf17f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
@@ -37,7 +37,7 @@ void FrameCallback::AddId(uint32_t id)
   mActorIdContainer.PushBack(id);
 }
 
-void FrameCallback::Update(Dali::UpdateProxy& updateProxy, float /* elapsedSeconds */)
+bool FrameCallback::Update(Dali::UpdateProxy& updateProxy, float /* elapsedSeconds */)
 {
   // Go through Actor ID container and check if we've hit the sides.
   for(auto&& i : mActorIdContainer)
@@ -67,4 +67,7 @@ void FrameCallback::Update(Dali::UpdateProxy& updateProxy, float /* elapsedSecon
       }
     }
   }
+
+  // We don't need it to keep rendering.
+  return false;
 }
index e41db59..7d6e335 100644 (file)
@@ -2,7 +2,7 @@
 #define DEMO_FRAME_CALLBACK_H
 
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
@@ -54,8 +54,9 @@ private:
    * @brief Called when every frame is updated.
    * @param[in]  updateProxy     Used to set the world-matrix and sizes.
    * @param[in]  elapsedSeconds  Time elapsed time since the last frame (in seconds)
+   * @return Whether we should keep rendering.
    */
-  virtual void Update(Dali::UpdateProxy& updateProxy, float elapsedSeconds);
+  virtual bool Update(Dali::UpdateProxy& updateProxy, float elapsedSeconds);
 
 private:
   Dali::Vector<uint32_t> mActorIdContainer; ///< Container of Actor IDs.
index 05293b5..00e8ff4 100755 (executable)
@@ -2,7 +2,7 @@
 
 Name:       com.samsung.dali-demo
 Summary:    The OpenGLES Canvas Core Demo
-Version:    2.2.33
+Version:    2.2.34
 Release:    1
 Group:      System/Libraries
 License:    Apache-2.0