SH-3455 WIP - post-SSA cleanup
parent
d50be6a8a9
commit
da398cb12f
|
|
@ -341,7 +341,6 @@ const LLViewerTexLayerSetBuffer* LLViewerTexLayerSet::getViewerComposite() const
|
|||
}
|
||||
|
||||
|
||||
// SUNSHINE CLEANUP - this used to have a bunch of upload related stuff, doesn't really serve much purpose now.
|
||||
const std::string LLViewerTexLayerSetBuffer::dumpTextureInfo() const
|
||||
{
|
||||
if (!isAgentAvatarValid()) return "";
|
||||
|
|
@ -350,10 +349,7 @@ const std::string LLViewerTexLayerSetBuffer::dumpTextureInfo() const
|
|||
const U32 num_low_res = 0;
|
||||
const std::string local_texture_info = gAgentAvatarp->debugDumpLocalTextureDataInfo(getViewerTexLayerSet());
|
||||
|
||||
std::string status = "DONE ";
|
||||
|
||||
std::string text = llformat("[%s] [HiRes:%d LoRes:%d] %s",
|
||||
status.c_str(),
|
||||
std::string text = llformat("[HiRes:%d LoRes:%d] %s",
|
||||
is_high_res, num_low_res,
|
||||
local_texture_info.c_str());
|
||||
return text;
|
||||
|
|
|
|||
|
|
@ -964,9 +964,7 @@ LLViewerFetchedTexture::LLViewerFetchedTexture(const LLUUID& id, FTType f_type,
|
|||
mFTType = f_type;
|
||||
if (mFTType == FTT_HOST_BAKE)
|
||||
{
|
||||
// SUNSHINE CLEANUP
|
||||
llassert(false);
|
||||
mCanUseHTTP = false;
|
||||
llwarns << "Unsupported fetch type " << mFTType << llendl;
|
||||
}
|
||||
generateGLTexture() ;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1884,24 +1884,17 @@ LLViewerFetchedTexture *LLVOAvatar::getBakedTextureImage(const U8 te, const LLUU
|
|||
if (!result)
|
||||
{
|
||||
const std::string url = getImageURL(te,uuid);
|
||||
if (!url.empty())
|
||||
if (url.empty())
|
||||
{
|
||||
LL_DEBUGS("Avatar") << avString() << "get server-bake image from URL " << url << llendl;
|
||||
result = LLViewerTextureManager::getFetchedTextureFromUrl(
|
||||
url, FTT_SERVER_BAKE, TRUE, LLGLTexture::BOOST_NONE, LLViewerTexture::LOD_TEXTURE, 0, 0, uuid);
|
||||
if (result->isMissingAsset())
|
||||
{
|
||||
result->setIsMissingAsset(false);
|
||||
}
|
||||
llwarns << "unable to determine URL for te " << te << " uuid " << uuid << llendl;
|
||||
return NULL;
|
||||
}
|
||||
else
|
||||
LL_DEBUGS("Avatar") << avString() << "get server-bake image from URL " << url << llendl;
|
||||
result = LLViewerTextureManager::getFetchedTextureFromUrl(
|
||||
url, FTT_SERVER_BAKE, TRUE, LLGLTexture::BOOST_NONE, LLViewerTexture::LOD_TEXTURE, 0, 0, uuid);
|
||||
if (result->isMissingAsset())
|
||||
{
|
||||
// SUNSHINE CLEANUP
|
||||
llassert(false);
|
||||
LL_DEBUGS("Avatar") << avString() << "get old-bake image from host " << uuid << llendl;
|
||||
LLHost host = getObjectHost();
|
||||
result = LLViewerTextureManager::getFetchedTexture(
|
||||
uuid, FTT_HOST_BAKE, TRUE, LLGLTexture::BOOST_NONE, LLViewerTexture::LOD_TEXTURE, 0, 0, host);
|
||||
result->setIsMissingAsset(false);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
|
@ -4118,35 +4111,6 @@ bool LLVOAvatar::allBakedTexturesCompletelyDownloaded() const
|
|||
return allTexturesCompletelyDownloaded(baked_ids);
|
||||
}
|
||||
|
||||
// SUNSHINE CLEANUP
|
||||
void LLVOAvatar::bakedTextureOriginCounts(S32 &sb_count, // server-bake, has origin URL.
|
||||
S32 &host_count, // host-based bake, has host.
|
||||
S32 &both_count, // error - both host and URL set.
|
||||
S32 &neither_count) // error - neither set.
|
||||
{
|
||||
sb_count = host_count = both_count = neither_count = 0;
|
||||
|
||||
std::set<LLUUID> baked_ids;
|
||||
collectBakedTextureUUIDs(baked_ids);
|
||||
for (std::set<LLUUID>::const_iterator it = baked_ids.begin(); it != baked_ids.end(); ++it)
|
||||
{
|
||||
LLViewerFetchedTexture *imagep = gTextureList.findImage(*it);
|
||||
bool has_url = false, has_host = false;
|
||||
if (!imagep->getUrl().empty())
|
||||
{
|
||||
has_url = true;
|
||||
}
|
||||
if (imagep->getTargetHost().isOk())
|
||||
{
|
||||
has_host = true;
|
||||
}
|
||||
if (has_url && !has_host) sb_count++;
|
||||
else if (has_host && !has_url) host_count++;
|
||||
else if (has_host && has_url) both_count++;
|
||||
else if (!has_host && !has_url) neither_count++;
|
||||
}
|
||||
}
|
||||
|
||||
std::string LLVOAvatar::bakedTextureOriginInfo()
|
||||
{
|
||||
std::string result;
|
||||
|
|
|
|||
|
|
@ -142,8 +142,6 @@ public:
|
|||
bool allTexturesCompletelyDownloaded(std::set<LLUUID>& ids) const;
|
||||
bool allLocalTexturesCompletelyDownloaded() const;
|
||||
bool allBakedTexturesCompletelyDownloaded() const;
|
||||
void bakedTextureOriginCounts(S32 &sb_count, S32 &host_count,
|
||||
S32 &both_count, S32 &neither_count);
|
||||
std::string bakedTextureOriginInfo();
|
||||
void collectLocalTextureUUIDs(std::set<LLUUID>& ids) const;
|
||||
void collectBakedTextureUUIDs(std::set<LLUUID>& ids) const;
|
||||
|
|
|
|||
Loading…
Reference in New Issue