summaryrefslogtreecommitdiff
path: root/indra/newview/lltexturefetch.h
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2012-05-04 18:17:20 -0600
committerXiaohong Bao <bao@lindenlab.com>2012-05-04 18:17:20 -0600
commitf86592e34e47b9f5b0e39c20b0e16d1367a311b9 (patch)
tree2ad6181d57269569f8eb49f527398ae2f6b7c858 /indra/newview/lltexturefetch.h
parent32c024c41d8edb2bbf5441178d83f3365182ed61 (diff)
parent0afca8603a56205df4c4e310387651726cbfbe3c (diff)
Automated merge with https://bitbucket.org/VirLinden/drano
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();