X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Frender%2Fcommon%2Frender-instruction-container.h;h=11e74512afcb2ad2e29b334fc5611463b3ae3f82;hb=df900c39d55e86098dc87945e269634f351fa0e5;hp=1bcff8b3c702247813c339869fb5af9c46a895c4;hpb=4468cbf6d9b84a613616f25970c64d843ce91d34;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 1bcff8b..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. @@ -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