summaryrefslogtreecommitdiff
path: root/indra/newview/lltexturefetch.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/lltexturefetch.h')
-rw-r--r--indra/newview/lltexturefetch.h32
1 files changed, 21 insertions, 11 deletions
diff --git a/indra/newview/lltexturefetch.h b/indra/newview/lltexturefetch.h
index a2e038704d..851d6c11a0 100644
--- a/indra/newview/lltexturefetch.h
+++ b/indra/newview/lltexturefetch.h
@@ -76,14 +76,18 @@ public:
// Threads: Tmain
void shutDownImageDecodeThread();
- static constexpr S32 FETCH_REQUEST_OK = 0;
- static constexpr S32 FETCH_REQUEST_CREATION_FAILED = -1;
- static constexpr S32 FETCH_REQUEST_ABORTED = -2;
- static constexpr S32 FETCH_REQUEST_EXISTS = -3;
+ enum e_crete_request_errors
+ {
+ CREATE_REQUEST_ERROR_DEFAULT = -1,
+ CREATE_REQUEST_ERROR_MHOSTS = -2,
+ CREATE_REQUEST_ERROR_ABORTED = -3,
+ CREATE_REQUEST_ERROR_TRANSITION = -4,
+ };
+
// Threads: T* (but Tmain mostly)
// returns discard on success, fail code otherwise
S32 createRequest(FTType f_type, const std::string& url, const LLUUID& id, const LLHost& host, F32 priority,
- S32 w, S32 h, S32 c, S32 discard, bool needs_aux, bool can_use_http, S32& worker_disacrd);
+ S32 w, S32 h, S32 c, S32 discard, bool needs_aux, bool can_use_http);
// Requests that a fetch operation be deleted from the queue.
// If @cancel is true, also stops any I/O operations pending.
@@ -100,7 +104,7 @@ public:
// Threads: T*
// keep in mind that if fetcher isn't done, it still might need original raw image
- bool getRequestFinished(const LLUUID& id, S32& discard_level,
+ bool getRequestFinished(const LLUUID& id, S32& discard_level, S32& worker_state,
LLPointer<LLImageRaw>& raw, LLPointer<LLImageRaw>& aux,
LLCore::HttpStatus& last_http_get_status);
@@ -114,17 +118,25 @@ public:
F32 getTextureBandwidth() { return mTextureBandwidth; }
// Threads: T*
- BOOL isFromLocalCache(const LLUUID& id);
+ bool isFromLocalCache(const LLUUID& id);
// get the current fetch state, if any, from the given UUID
S32 getFetchState(const LLUUID& id);
- // @return Fetch state of given image and associates statistics
+ // @return Fetch state of an active given image and associates statistics
// See also getStateString
// Threads: T*
S32 getFetchState(const LLUUID& id, F32& decode_progress_p, F32& requested_priority_p,
U32& fetch_priority_p, F32& fetch_dtime_p, F32& request_dtime_p, bool& can_use_http);
+ // @return Fetch last state of given image
+ // Threads: T*
+ S32 getLastFetchState(const LLUUID& id, S32& requested_discard, S32 &decoded_discard, bool &decoded);
+
+ // @return Fetch last raw image
+ // Threads: T*
+ S32 getLastRawImage(const LLUUID& id, LLPointer<LLImageRaw>& raw, LLPointer<LLImageRaw>& aux);
+
// Debug utility - generally not safe
void dump();
@@ -297,9 +309,7 @@ private:
public:
LLUUID mDebugID;
S32 mDebugCount;
- BOOL mDebugPause;
- S32 mPacketCount;
- S32 mBadPacketCount;
+ bool mDebugPause;
static LLTrace::CountStatHandle<F64> sCacheHit;
static LLTrace::CountStatHandle<F64> sCacheAttempt;