X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fupdate%2Fcommon%2Funiform-map.h;h=f62516913da31ffbd3f45afb5cfd525d7985209b;hb=6f13915a87f9539b40b0fcff191ba2968f87f0a9;hp=0a505ded17fb93369e07d9d342d81a294f6ebb3d;hpb=fb91f027aa740dd18f01eef6aa1ec7b08fe21401;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/update/common/uniform-map.h b/dali/internal/update/common/uniform-map.h index 0a505de..f625169 100644 --- a/dali/internal/update/common/uniform-map.h +++ b/dali/internal/update/common/uniform-map.h @@ -22,8 +22,10 @@ #include // INTERNAL INCLUDES +#include + #include -#include + #include namespace Dali @@ -82,8 +84,7 @@ public: /** * The UniformMap class is used to map uniform names to property values. It is available - * in all of the classes responsible for rendering: - * Actor, Renderer, Geometry, TextureSet, Shader. + * in the following rendering classes: Node, Renderer, Shader. * * It can be observed for changes to the mapping table. */ @@ -147,6 +148,14 @@ public: */ const UniformPropertyMapping& operator[](SizeType index) const; + /** + * Return the change counter + */ + inline std::size_t GetChangeCounter() const + { + return mChangeCounter; + } + private: /** * Helper to call the observers when the mappings have changed @@ -159,9 +168,9 @@ private: using Observers = Dali::Vector; using ObserversIter = Observers::Iterator; - UniformMapContainer mUniformMaps; // Owner container of uniform maps - - Observers mObservers; + UniformMapContainer mUniformMaps; ///< container of uniform maps + Observers mObservers; + std::size_t mChangeCounter{0u}; ///< Counter that is incremented when the map changes }; } // namespace SceneGraph