diff options
author | Rye Mutt <rye@alchemyviewer.org> | 2023-03-01 10:26:34 -0500 |
---|---|---|
committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2023-03-03 19:44:22 +0200 |
commit | cdb3c018af9fc75064dc63537e61c5df567c331a (patch) | |
tree | 04b8fafb96972dc7fa76cc61d008a59b45a4579a /indra/llui/lliconctrl.h | |
parent | 89afd1cd4838022267f117efb65939c04c35f3da (diff) |
SL-19336 Unload avatar and group icons from memory when not visible to reduce memory pressure on extremely large friends lists
Diffstat (limited to 'indra/llui/lliconctrl.h')
-rw-r--r-- | indra/llui/lliconctrl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/llui/lliconctrl.h b/indra/llui/lliconctrl.h index 9c3b517bca..5d6c544571 100644 --- a/indra/llui/lliconctrl.h +++ b/indra/llui/lliconctrl.h @@ -72,6 +72,7 @@ public: virtual BOOL handleHover(S32 x, S32 y, MASK mask); // lluictrl overrides + void onVisibilityChange(BOOL new_visibility); virtual void setValue(const LLSD& value ); std::string getImageName() const; @@ -95,6 +96,8 @@ protected: bool mInteractable; private: + void loadImage(const LLSD& value, S32 priority); + LLUIColor mColor; LLPointer<LLUIImage> mImagep; }; |