summaryrefslogtreecommitdiff
path: root/indra/newview/llthumbnailctrl.h
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-05-15 12:35:33 +0800
committerErik Kundiman <erik@megapahit.org>2024-05-15 12:35:33 +0800
commit81398f965263b867dffc99801f596a5fe0f6dab6 (patch)
treebf36d1657a167c2ec0b7f85701e5722653bbc03a /indra/newview/llthumbnailctrl.h
parent4bf5c78135577f6a1cc57f108de7a949c347c88b (diff)
Reapply "SL-20411 Don't load all thumnails at once for large folders #2"
This reverts commit 05475f8cfab81fe70b87b24031a12465cfbf492e.
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;