summaryrefslogtreecommitdiff
path: root/indra/newview/lltexturefetch.h
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2012-05-04 18:16:37 -0600
committerXiaohong Bao <bao@lindenlab.com>2012-05-04 18:16:37 -0600
commit0afca8603a56205df4c4e310387651726cbfbe3c (patch)
treebdc4d4e536c8256d205b8577093e959b770fd331 /indra/newview/lltexturefetch.h
parentc143a4f87ee465c797a0fcf06e267bd32b9e52c7 (diff)
fix crashes and flaws for SH-3086
Diffstat (limited to 'indra/newview/lltexturefetch.h')
-rw-r--r--indra/newview/lltexturefetch.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/indra/newview/lltexturefetch.h b/indra/newview/lltexturefetch.h
index ff78d34eda..436306398e 100644
--- a/indra/newview/lltexturefetch.h
+++ b/indra/newview/lltexturefetch.h
@@ -221,8 +221,7 @@ public:
enum e_tex_source
{
FROM_ALL = 0,
- FROM_CACHE_ONLY,
- FROM_NETWORK_ONLY,
+ FROM_HTTP_ONLY,
INVALID_SOURCE
};
private:
@@ -240,8 +239,7 @@ public:
void setLoadSource(e_tex_source source) {mFetchSource = source;}
void resetLoadSource() {mFetchSource = mOriginFetchSource;}
- bool canLoadFromCache() { return mFetchSource != FROM_NETWORK_ONLY;}
- bool canLoadFromNetwork() { return mFetchSource != FROM_CACHE_ONLY;}
+ bool canLoadFromCache() { return mFetchSource != FROM_HTTP_ONLY;}
};
//debug use
@@ -257,6 +255,7 @@ public:
enum e_debug_state
{
IDLE = 0,
+ START_DEBUG,
READ_CACHE,
WRITE_CACHE,
DECODING,
@@ -347,13 +346,15 @@ private:
U32 mRefetchedAllPixels;
BOOL mFreezeHistory;
+ BOOL mStopDebug;
+ BOOL mClearHistory;
+ BOOL mRefetchNonVis;
std::string mHTTPUrl;
S32 mNbCurlRequests;
S32 mNbCurlCompleted;
std::map< LLPointer<LLViewerFetchedTexture>, std::vector<S32> > mRefetchList;
- F32 mRefetchStartTime;
public:
bool update(); //called in the main thread once per frame
@@ -364,7 +365,8 @@ public:
void setCurlGetRequest(LLCurlRequest* request) { mCurlGetRequest = request;}
void startDebug();
- void stopDebug(); //stop everything
+ void setStopDebug() {mStopDebug = TRUE;}
+ void tryToStopDebug(); //stop everything
void debugCacheRead();
void debugCacheWrite();
void debugHTTP();