From cdb3c018af9fc75064dc63537e61c5df567c331a Mon Sep 17 00:00:00 2001 From: Rye Mutt Date: Wed, 1 Mar 2023 10:26:34 -0500 Subject: SL-19336 Unload avatar and group icons from memory when not visible to reduce memory pressure on extremely large friends lists --- indra/llui/lliconctrl.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'indra/llui/lliconctrl.h') 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 mImagep; }; -- cgit v1.3