summaryrefslogtreecommitdiff
path: root/indra/newview/llthumbnailctrl.h
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-10-06 23:27:11 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-11-21 22:11:59 +0200
commitf3b8565d212a29a04082d65fc45ab0aa48af3e64 (patch)
treec93f067a38c16d565559dc18b8f2e421a47bad17 /indra/newview/llthumbnailctrl.h
parent7706c1771dd0d8b767d69c3e3cdfd8ab6d620d16 (diff)
SL-20411 Don't load all thumnails at once for large folders #2
Diffstat (limited to 'indra/newview/llthumbnailctrl.h')
-rw-r--r--indra/newview/llthumbnailctrl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llthumbnailctrl.h b/indra/newview/llthumbnailctrl.h
index 70f56c429c..f84a583271 100644
--- a/indra/newview/llthumbnailctrl.h
+++ b/indra/newview/llthumbnailctrl.h
@@ -64,16 +64,24 @@ public:
virtual ~LLThumbnailCtrl();
virtual void draw() override;
+ void setVisible(BOOL visible) override;
virtual void setValue(const LLSD& value ) override;
+ void setInitImmediately(bool val) { mInitImmediately = val; }
void clearTexture();
virtual BOOL handleHover(S32 x, S32 y, MASK mask) override;
+
+protected:
+ void initImage();
+ void unloadImage();
private:
bool mBorderVisible;
bool mInteractable;
bool mShowLoadingPlaceholder;
+ bool mInited;
+ bool mInitImmediately;
std::string mLoadingPlaceholderString;
LLUUID mImageAssetID;
LLViewBorder* mBorder;