diff options
author | ruslantproductengine <ruslantproductengine@lindenlab.com> | 2017-03-03 16:45:46 +0200 |
---|---|---|
committer | ruslantproductengine <ruslantproductengine@lindenlab.com> | 2017-03-03 16:45:46 +0200 |
commit | cbffc8194cd6e3f4cbfc20b372e5ec86448b9cbc (patch) | |
tree | f9b1eef41530458e1b3c26770603d76ba32036b7 /indra/newview/llvovolume.h | |
parent | 9a525c163e488775d5d57dc0beff8b3e92e50b0f (diff) |
MAINT-7119 - [Love Me Render] Issues with RenderAutoMuteByteLimit() versus worn legacy prims, sculpts and non-rigged mesh.
FIXED.
Remark: for Linux platform, for the best times, when we will use gcc > 4.6, otherwise ICE :-(
Diffstat (limited to 'indra/newview/llvovolume.h')
-rw-r--r-- | indra/newview/llvovolume.h | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/indra/newview/llvovolume.h b/indra/newview/llvovolume.h index 09b342b153..2d9315df70 100644 --- a/indra/newview/llvovolume.h +++ b/indra/newview/llvovolume.h @@ -36,10 +36,6 @@ #include "m4math.h" // LLMatrix4 #include <map> #include <set> -//boost -#include "boost/multi_index_container.hpp" -#include "boost/multi_index/ordered_index.hpp" -#include "boost/multi_index/mem_fun.hpp" class LLViewerTextureAnim; @@ -418,87 +414,5 @@ private: }; -//........... - -class LLSculptIDSize -{ -public: - struct SizeInfo - { - SizeInfo(int size) : m_size(size) {} - unsigned int m_size; - }; - - struct Info - { - typedef boost::shared_ptr<SizeInfo> PtrSizeInfo; - - Info(const LLDrawable *pdrawable, int size, PtrSizeInfo psize_info, LLUUID sculpt_id) - : m_p_drawable(pdrawable) - , m_size(size) - , m_p_size_info(psize_info) - , m_sculpt_id(sculpt_id) - {} - - const LLDrawable *m_p_drawable; - unsigned int m_size; - PtrSizeInfo m_p_size_info; - LLUUID m_sculpt_id; - - inline const LLDrawable* getPtrLLDrawable() const { return m_p_drawable; } - inline unsigned int getSize() const { return m_size; } - inline unsigned int getTotalSize() const { return m_p_size_info->m_size; } - inline LLUUID getSculptId() const { return m_sculpt_id; } - PtrSizeInfo getSizeInfo() { return m_p_size_info; } - }; - -public: - //tags - struct tag_BY_DRAWABLE {}; - struct tag_BY_SCULPT_ID {}; - struct tag_BY_SIZE {}; - - //container - typedef boost::multi_index_container < - Info, - boost::multi_index::indexed_by < - boost::multi_index::ordered_unique< boost::multi_index::tag<tag_BY_DRAWABLE> - , boost::multi_index::const_mem_fun<Info, const LLDrawable*, &Info::getPtrLLDrawable> - > - , boost::multi_index::ordered_non_unique<boost::multi_index::tag<tag_BY_SCULPT_ID> - , boost::multi_index::const_mem_fun<Info, LLUUID, &Info::getSculptId> - > - , boost::multi_index::ordered_non_unique<boost::multi_index::tag<tag_BY_SIZE> - , boost::multi_index::const_mem_fun<Info, unsigned int, &Info::getTotalSize> - > - > - > container; - - //views - typedef container::index<tag_BY_DRAWABLE>::type container_BY_DRAWABLE_view; - typedef container::index<tag_BY_SCULPT_ID>::type container_BY_SCULPT_ID_view; - typedef container::index<tag_BY_SIZE>::type container_BY_SIZE_view; - -private: - LLSculptIDSize() - {} - -public: - static LLSculptIDSize & instance() { - static LLSculptIDSize inst; - return inst; - } - -public: - void inc(const LLDrawable *pdrawable, int sz); - void dec(const LLDrawable *pdrawable); - void rem(LLUUID sculptId); - - const container & getSizeInfo() const { return m_size_info; } - -private: - container m_size_info; -}; - #endif // LL_LLVOVOLUME_H |