-#ifndef __DALI_INTERNAL_SCENE_GRAPH_RENDER_INSTRUCTION_CONTAINER_H__
-#define __DALI_INTERNAL_SCENE_GRAPH_RENDER_INSTRUCTION_CONTAINER_H__
+#ifndef DALI_INTERNAL_SCENE_GRAPH_RENDER_INSTRUCTION_CONTAINER_H
+#define DALI_INTERNAL_SCENE_GRAPH_RENDER_INSTRUCTION_CONTAINER_H
/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
* @param bufferIndex to reset
* @param capacityRequired in the container
*/
- void ResetAndReserve( BufferIndex bufferIndex, size_t capacityRequired );
+ void ResetAndReserve( BufferIndex bufferIndex, uint32_t capacityRequired );
/**
* Return the count of instructions in the container
* @param bufferIndex to use
* @return the count of elements
*/
- size_t Count( BufferIndex bufferIndex );
+ uint32_t Count( BufferIndex bufferIndex );
/**
* Get a reference to the next instruction
* @param bufferIndex to use
* @param index to use
*/
- RenderInstruction& At( BufferIndex bufferIndex, size_t index );
+ RenderInstruction& At( BufferIndex bufferIndex, uint32_t index );
+
+ /**
+ * Discard the current container index
+ * @param bufferIndex to reset
+ */
+ void DiscardCurrentInstruction( BufferIndex bufferIndex );
private:
} // namespace Dali
-#endif // __DALI_INTERNAL_SCENE_GRAPH_RENDER_INSTRUCTION_CONTAINER_H__
+#endif // DALI_INTERNAL_SCENE_GRAPH_RENDER_INSTRUCTION_CONTAINER_H