summaryrefslogtreecommitdiff
path: root/indra/newview/lltexturecache.h
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2017-09-28 17:10:38 +0300
committerandreykproductengine <andreykproductengine@lindenlab.com>2017-09-28 17:10:38 +0300
commit09540c8cd0c6a89eb392d59dab04487246189979 (patch)
tree0fef3305691c849604b152c5cb177be9e964433a /indra/newview/lltexturecache.h
parent24fedef537d951eb279b628259fbe874dc124101 (diff)
SL-775 SL-11418 Texture cache purge stalls viewer
Diffstat (limited to 'indra/newview/lltexturecache.h')
-rw-r--r--indra/newview/lltexturecache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/lltexturecache.h b/indra/newview/lltexturecache.h
index 81ea7aeee2..9f68aa9039 100644
--- a/indra/newview/lltexturecache.h
+++ b/indra/newview/lltexturecache.h
@@ -155,6 +155,7 @@ private:
void readHeaderCache();
void clearCorruptedCache();
void purgeAllTextures(bool purge_directories);
+ void purgeTexturesLazy(F32 time_limit_sec);
void purgeTextures(bool validate);
LLAPRFile* openHeaderEntriesFile(bool readonly, S32 offset);
void closeHeaderEntriesFile();
@@ -225,6 +226,8 @@ private:
typedef std::map<S32, Entry> idx_entry_map_t;
idx_entry_map_t mUpdatedEntryMap;
+ typedef std::vector<std::pair<S32, Entry>> idx_entry_vector_t;
+ idx_entry_vector_t mPurgeEntryList;
// Statics
static F32 sHeaderCacheVersion;