X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Frender%2Fcommon%2Frender-instruction-container.h;h=11e74512afcb2ad2e29b334fc5611463b3ae3f82;hb=794c9cb65a9531d4b4b75c5682977bdc3c7da4b0;hp=4fb4cb50cc0e48b94983616380748e7907275fcb;hpb=27619bbc4c1d443e89a6cdd116e544f6d9657fa4;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/render/common/render-instruction-container.h b/dali/internal/render/common/render-instruction-container.h index 4fb4cb5..11e7451 100644 --- a/dali/internal/render/common/render-instruction-container.h +++ b/dali/internal/render/common/render-instruction-container.h @@ -1,8 +1,8 @@ -#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. @@ -19,8 +19,8 @@ */ // INTERNAL INCLUDES +#include #include -#include namespace Dali { @@ -54,14 +54,14 @@ public: * @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 @@ -74,7 +74,13 @@ public: * @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: @@ -90,4 +96,4 @@ private: } // namespace Dali -#endif // __DALI_INTERNAL_SCENE_GRAPH_RENDER_INSTRUCTION_CONTAINER_H__ +#endif // DALI_INTERNAL_SCENE_GRAPH_RENDER_INSTRUCTION_CONTAINER_H