/*
- * 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.
//Memory pool used to allocate new RenderItems. Memory used by this pool will be released when shutting down DALi
Dali::Internal::MemoryPoolObjectAllocator<Dali::Internal::SceneGraph::RenderItem>& GetRenderItemPool()
{
- static Dali::Internal::MemoryPoolObjectAllocator<Dali::Internal::SceneGraph::RenderItem> gRenderItemPool;
+ static Dali::Internal::MemoryPoolObjectAllocator<Dali::Internal::SceneGraph::RenderItem> gRenderItemPool(true /* Forcibly use memory pool */);
return gRenderItemPool;
}
} // namespace
return RenderItemKey(key);
}
+void RenderItem::ResetMemoryPool()
+{
+ GetRenderItemPool().ResetMemoryPool();
+}
+
RenderItem::RenderItem()
: mModelMatrix(false),
mModelViewMatrix(false),
+ mScale(),
mSize(),
mRenderer{},
mNode(nullptr),