Fix SVACE error in PropertyOwner
[platform/core/uifw/dali-core.git] / dali / internal / update / common / property-owner.h
index 843a19b..e0e15c5 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTERNAL_SCENE_GRAPH_PROPERTY_OWNER_H
 
 /*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 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.
@@ -160,6 +160,23 @@ public:
     return mCustomProperties;
   }
 
+  /**
+   * Mark an property owner with the updated flag.
+   * @param[in] updated The updated flag
+   */
+  virtual void SetUpdated(bool updated)
+  {
+    mUpdated = updated;
+  }
+
+  /**
+   * Retrieve if the property owner is updated due to the property is being animating.
+   * @return An updated flag
+   */
+  bool Updated() const
+  {
+    return mUpdated;
+  }
 
   // Constraints
 
@@ -226,6 +243,7 @@ protected:
 
   OwnedPropertyContainer mCustomProperties; ///< Properties provided with InstallCustomProperty()
   UniformMap mUniformMaps; ///< Container of owned uniform maps
+  bool mUpdated;
 
 private: