summaryrefslogtreecommitdiff
path: root/indra/newview/llagentbenefits.h
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2024-06-11 01:21:42 +0300
committerAndrey Lihatskiy <alihatskiy@productengine.com>2024-06-11 01:21:42 +0300
commitee49b3b045e366aec466f46743214386d7fecb21 (patch)
treed5b498f2a73eb6709b5c24241549f854a14b7bb6 /indra/newview/llagentbenefits.h
parent8f6e50ed6a8b2a3f7b2a173bf7c535aac13f22b5 (diff)
parenta73773bc1abdac6bc3beea36fd4ba58eba686e13 (diff)
Merge branch 'main' into marchcat/c-merge
# Conflicts: # indra/newview/llviewermenufile.cpp
Diffstat (limited to 'indra/newview/llagentbenefits.h')
-rw-r--r--indra/newview/llagentbenefits.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llagentbenefits.h b/indra/newview/llagentbenefits.h
index 1afc80a6cc..ff23241aa9 100644
--- a/indra/newview/llagentbenefits.h
+++ b/indra/newview/llagentbenefits.h
@@ -30,9 +30,14 @@
#include "llsd.h"
#include "llassettype.h"
+class LLViewerTexture;
+class LLImageBase;
+
class LLAgentBenefits
{
public:
+ static constexpr S32 MIN_2K_TEXTURE_AREA = 1024 * 1024 + 1;
+
LLAgentBenefits();
~LLAgentBenefits();
LOG_CLASS(LLAgentBenefits);
@@ -47,6 +52,9 @@ public:
S32 getPicksLimit() const;
S32 getSoundUploadCost() const;
S32 getTextureUploadCost() const;
+ S32 getTextureUploadCost(const LLViewerTexture* tex) const;
+ S32 getTextureUploadCost(const LLImageBase* tex) const;
+ S32 get2KTextureUploadCost(S32 area) const;
bool findUploadCost(LLAssetType::EType& asset_type, S32& cost) const;
@@ -59,6 +67,7 @@ private:
S32 m_picks_limit;
S32 m_sound_upload_cost;
S32 m_texture_upload_cost;
+ std::vector<S32> m_2k_texture_upload_cost;
bool m_initalized;
};