X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Frender%2Fcommon%2Frender-list.h;h=90925eb892a042483689d85725d2415ed57132fc;hb=b43741a90b40ca9dfbd33d6a9d390d3c09230e89;hp=1aef5615647ab716736cacdf712fead3c09346da;hpb=d8e8f7de1ff30edb599d422b7a0bc2ae259f4ee5;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/render/common/render-list.h b/dali/internal/render/common/render-list.h old mode 100644 new mode 100755 index 1aef561..90925eb --- a/dali/internal/render/common/render-list.h +++ b/dali/internal/render/common/render-list.h @@ -2,7 +2,7 @@ #define DALI_INTERNAL_SCENE_GRAPH_RENDER_LIST_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -18,6 +18,9 @@ * */ +// EXTERNAL INCLUDES +#include + // INTERNAL INCLUDES #include #include @@ -60,7 +63,8 @@ public: : mNextFree( 0 ), mClippingBox( NULL ), mSourceLayer( NULL ), - mHasColorRenderItems( false ) + mHasColorRenderItems( false ), + mPartialUpdateEnabled( false ) { } @@ -122,7 +126,7 @@ public: /** * Get item at a given position in the list */ - RenderItem& GetItem( RenderItemContainer::SizeType index ) const + RenderItem& GetItem( uint32_t index ) const { DALI_ASSERT_DEBUG( index < GetCachedItemCount() ); return *mItems[ index ]; @@ -131,7 +135,7 @@ public: /** * Get renderer from an item in the list */ - const Render::Renderer& GetRenderer( RenderItemContainer::SizeType index ) const + const Render::Renderer& GetRenderer( uint32_t index ) const { DALI_ASSERT_DEBUG( index < GetCachedItemCount() ); return *mItems[ index ]->mRenderer; @@ -142,7 +146,7 @@ public: * Because of caching, the actual size may be bit more * @return The number of items */ - RenderItemContainer::SizeType Count() const + uint32_t Count() const { return mNextFree; } @@ -150,9 +154,9 @@ public: /** * @return the number of items cached by the list */ - RenderItemContainer::SizeType GetCachedItemCount() const + uint32_t GetCachedItemCount() const { - return mItems.Count(); + return static_cast( mItems.Count() ); } /** @@ -160,7 +164,7 @@ public: */ void ReuseCachedItems() { - mNextFree = mItems.Count(); + mNextFree = static_cast( mItems.Count() ); } /** @@ -255,6 +259,24 @@ public: return mHasColorRenderItems; } + /** + * Enable/Disable Partial update dirty flag + * @param[in] true to mark dirty else false + */ + void SetPartialUpdateEnabled( bool value ) + { + mPartialUpdateEnabled = value; + } + + /** + * Get Partial update dirty flag + * @return true if dirty else false + */ + bool IsPartialUpdateEnabled() const + { + return mPartialUpdateEnabled; + } + private: /* @@ -264,11 +286,12 @@ private: const RenderList& operator=( const RenderList& rhs ); RenderItemContainer mItems; ///< Each item is a renderer and matrix pair - RenderItemContainer::SizeType mNextFree; ///< index for the next free item to use + uint32_t mNextFree; ///< index for the next free item to use ClippingBox* mClippingBox; ///< The clipping box, in window coordinates, when clipping is enabled Layer* mSourceLayer; ///< The originating layer where the renderers are from bool mHasColorRenderItems : 1; ///< True if list contains color render items + bool mPartialUpdateEnabled : 1; //< True if partial update is needed. };