Merge "Sync UTC harness" into devel/master
[platform/core/uifw/dali-core.git] / dali / internal / render / common / render-instruction-container.h
index 9417afe..f2292c7 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTERNAL_SCENE_GRAPH_RENDER_INSTRUCTION_CONTAINER_H
 
 /*
- * 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.
@@ -22,6 +22,7 @@
 #include <dali/devel-api/common/owner-container.h>
 #include <dali/internal/common/buffer-index.h>
 #include <dali/public-api/common/vector-wrapper.h>
+#include <cstddef>
 
 namespace Dali
 {
@@ -75,6 +76,11 @@ public:
    */
   void PushBack(BufferIndex index, RenderInstruction* renderInstruction);
 
+  /**
+   * Get the total memory used by all the render instructions
+   */
+  std::size_t GetCapacity() const;
+
 private:
   std::vector<RenderInstruction*> mInstructions;
 };