Adding Handle::ReserveCustomProperties method
[platform/core/uifw/dali-core.git] / dali / internal / update / common / property-owner.cpp
index 51a7dc6..e23831f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
@@ -113,6 +113,11 @@ void PropertyOwner::DisconnectFromSceneGraph(BufferIndex updateBufferIndex)
   mConstraints.Clear();
 }
 
+void PropertyOwner::ReserveProperties(int propertyCount)
+{
+  mCustomProperties.Reserve(propertyCount);
+}
+
 void PropertyOwner::InstallCustomProperty(OwnerPointer<PropertyBase>& property)
 {
   mCustomProperties.PushBack(property.Release());