LLTextureFetchWorker Class Reference

Inheritance diagram for LLTextureFetchWorker:

Inheritance graph
[legend]
Collaboration diagram for LLTextureFetchWorker:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool doWork (S32 param)
void finishWork (S32 param, bool completed)
bool deleteOK ()
 ~LLTextureFetchWorker ()
void relese ()

Protected Member Functions

 LLTextureFetchWorker (LLTextureFetch *fetcher, const LLUUID &id, const LLHost &host, F32 priority, S32 discard, S32 size)

Private Types

 INVALID = 0
 INIT
 LOAD_FROM_TEXTURE_CACHE
 CACHE_POST
 LOAD_FROM_NETWORK
 LOAD_FROM_SIMULATOR
 LOAD_FROM_HTTP_GET_URL
 LOAD_FROM_HTTP_GET_DATA
 DECODE_IMAGE
 DECODE_IMAGE_UPDATE
 WRITE_TO_CACHE
 WAIT_ON_WRITE
 DONE
 UNSENT = 0
 QUEUED = 1
 SENT_SIM = 2
 SENT_URL = 3
 SENT_HTTP = 4
enum  e_state {
  INVALID = 0, INIT, LOAD_FROM_TEXTURE_CACHE, CACHE_POST,
  LOAD_FROM_NETWORK, LOAD_FROM_SIMULATOR, LOAD_FROM_HTTP_GET_URL, LOAD_FROM_HTTP_GET_DATA,
  DECODE_IMAGE, DECODE_IMAGE_UPDATE, WRITE_TO_CACHE, WAIT_ON_WRITE,
  DONE
}
enum  e_request_state {
  UNSENT = 0, QUEUED = 1, SENT_SIM = 2, SENT_URL = 3,
  SENT_HTTP = 4
}

Private Member Functions

void startWork (S32 param)
void endWork (S32 param, bool aborted)
void resetFormattedData ()
void setImagePriority (F32 priority)
void setDesiredDiscard (S32 discard, S32 size)
bool insertPacket (S32 index, U8 *data, S32 size)
void clearPackets ()
U32 calcWorkPriority ()
void removeFromCache ()
bool processSimulatorPackets ()
bool decodeImage ()
bool writeToCacheComplete ()
void lockWorkData ()
void unlockWorkData ()
void callbackURLReceived (const LLSD &data, bool success)
void callbackHttpGet (U8 *data, S32 data_size, bool last_block)
void callbackCacheRead (bool success, LLImageFormatted *image, S32 imagesize, BOOL islocal)
void callbackCacheWrite (bool success)
void callbackDecoded (bool success)

Private Attributes

e_state mState
LLTextureFetchmFetcher
LLImageWorkermImageWorker
LLPointer< LLImageFormattedmFormattedImage
LLPointer< LLImageRawmRawImage
LLPointer< LLImageRawmAuxImage
LLUUID mID
LLHost mHost
U8 mType
F32 mImagePriority
U32 mWorkPriority
F32 mRequestedPriority
S32 mDesiredDiscard
S32 mSimRequestedDiscard
S32 mRequestedDiscard
S32 mLoadedDiscard
S32 mDecodedDiscard
LLFrameTimer mRequestedTimer
LLFrameTimer mFetchTimer
LLTextureCache::handle_t mCacheReadHandle
LLTextureCache::handle_t mCacheWriteHandle
U8mBuffer
S32 mBufferSize
S32 mRequestedSize
S32 mDesiredSize
S32 mFileSize
S32 mCachedSize
BOOL mLoaded
e_request_state mSentRequest
BOOL mDecoded
BOOL mWritten
BOOL mNeedsAux
BOOL mHaveAllData
BOOL mInLocalCache
S32 mRetryAttempt
std::string mURL
S32 mActiveCount
LLMutex mWorkMutex
std::vector< PacketData * > mPackets
S32 mFirstPacket
S32 mLastPacket
U16 mTotalPackets
U8 mImageCodec

Static Private Attributes

static const char * sStateDescs []

Friends

class LLTextureFetch

Classes

class  CacheReadResponder
class  CacheWriteResponder
struct  Compare
class  DecodeResponder
class  HTTPGetResponder
struct  PacketData
class  URLResponder

Detailed Description

Definition at line 54 of file lltexturefetch.cpp.


Member Enumeration Documentation

enum LLTextureFetchWorker::e_request_state [private]

Enumerator:
UNSENT 
QUEUED 
SENT_SIM 
SENT_URL 
SENT_HTTP 

Definition at line 277 of file lltexturefetch.cpp.

enum LLTextureFetchWorker::e_state [private]

Enumerator:
INVALID 
INIT 
LOAD_FROM_TEXTURE_CACHE 
CACHE_POST 
LOAD_FROM_NETWORK 
LOAD_FROM_SIMULATOR 
LOAD_FROM_HTTP_GET_URL 
LOAD_FROM_HTTP_GET_DATA 
DECODE_IMAGE 
DECODE_IMAGE_UPDATE 
WRITE_TO_CACHE 
WAIT_ON_WRITE 
DONE 

Definition at line 260 of file lltexturefetch.cpp.


Constructor & Destructor Documentation

LLTextureFetchWorker::~LLTextureFetchWorker (  ) 

Definition at line 414 of file lltexturefetch.cpp.

References clearPackets(), LLWorkerClass::haveWork(), llassert_always, lockWorkData(), mCacheReadHandle, mCacheWriteHandle, mFetcher, mFormattedImage, mImageWorker, LLTextureFetch::mTextureCache, NULL, LLQueuedThread::nullHandle(), LLTextureCache::readComplete(), LLWorkerClass::scheduleDelete(), unlockWorkData(), and LLTextureCache::writeComplete().

LLTextureFetchWorker::LLTextureFetchWorker ( LLTextureFetch fetcher,
const LLUUID id,
const LLHost host,
F32  priority,
S32  discard,
S32  size 
) [protected]

Definition at line 360 of file lltexturefetch.cpp.

References LLWorkerClass::addWork(), calcWorkPriority(), LLHost::isOk(), LLTextureFetch::mDebugPause, mFetcher, mType, mWorkPriority, LLQueuedThread::PRIORITY_HIGH, setDesiredDiscard(), LLImageBase::TYPE_AVATAR_BAKE, and LLImageBase::TYPE_NORMAL.


Member Function Documentation

U32 LLTextureFetchWorker::calcWorkPriority (  )  [private]

Definition at line 448 of file lltexturefetch.cpp.

References LLViewerImage::maxDecodePriority(), mImagePriority, mWorkPriority, and LLQueuedThread::PRIORITY_LOWBITS.

Referenced by LLTextureFetchWorker(), setDesiredDiscard(), and setImagePriority().

void LLTextureFetchWorker::callbackCacheRead ( bool  success,
LLImageFormatted image,
S32  imagesize,
BOOL  islocal 
) [private]

Definition at line 1136 of file lltexturefetch.cpp.

References LLImageFormatted::getCodec(), llassert_always, llendl, llwarns, LOAD_FROM_TEXTURE_CACHE, mFileSize, mFormattedImage, mHaveAllData, mID, mImageCodec, mInLocalCache, mLoaded, mState, mWorkMutex, mWorkPriority, LLQueuedThread::PRIORITY_HIGH, LLWorkerClass::setPriority(), and TRUE.

Referenced by LLTextureFetchWorker::CacheReadResponder::completed().

void LLTextureFetchWorker::callbackCacheWrite ( bool  success  )  [private]

Definition at line 1161 of file lltexturefetch.cpp.

References llendl, llwarns, mID, mState, mWorkMutex, mWorkPriority, mWritten, LLQueuedThread::PRIORITY_HIGH, LLWorkerClass::setPriority(), TRUE, and WAIT_ON_WRITE.

Referenced by LLTextureFetchWorker::CacheWriteResponder::completed().

void LLTextureFetchWorker::callbackDecoded ( bool  success  )  [private]

Definition at line 1175 of file lltexturefetch.cpp.

References DECODE_IMAGE_UPDATE, llendl, llwarns, mID, mState, mWorkPriority, LLQueuedThread::PRIORITY_HIGH, and LLWorkerClass::setPriority().

Referenced by LLTextureFetchWorker::DecodeResponder::completed().

void LLTextureFetchWorker::callbackHttpGet ( U8 data,
S32  data_size,
bool  last_block 
) [private]

Definition at line 1080 of file lltexturefetch.cpp.

References LLUUID::asString(), llendl, llinfos, llwarns, LOAD_FROM_HTTP_GET_DATA, mBuffer, mBufferSize, mFormattedImage, mHaveAllData, mID, mLoaded, mRequestedSize, mSentRequest, mState, mWorkMutex, mWorkPriority, LLQueuedThread::PRIORITY_HIGH, LLWorkerClass::setPriority(), and TRUE.

Referenced by LLTextureFetchWorker::HTTPGetResponder::completed().

void LLTextureFetchWorker::callbackURLReceived ( const LLSD data,
bool  success 
) [private]

Definition at line 1059 of file lltexturefetch.cpp.

References LLSD::asString(), llendl, llwarns, LOAD_FROM_HTTP_GET_URL, mLoaded, mSentRequest, mState, mURL, mWorkMutex, mWorkPriority, LLQueuedThread::PRIORITY_HIGH, LLWorkerClass::setPriority(), and TRUE.

Referenced by LLTextureFetchWorker::URLResponder::error(), and LLTextureFetchWorker::URLResponder::result().

void LLTextureFetchWorker::clearPackets (  )  [private]

Definition at line 439 of file lltexturefetch.cpp.

References mFirstPacket, mLastPacket, mPackets, and mTotalPackets.

Referenced by doWork(), and ~LLTextureFetchWorker().

bool LLTextureFetchWorker::decodeImage (  )  [private]

Definition at line 1188 of file lltexturefetch.cpp.

References LLPointer< Type >::isNull(), llassert_always, llendl, llwarns, mAuxImage, mDecodedDiscard, mFormattedImage, mID, mImageWorker, mNeedsAux, mRawImage, LLPointer< Type >::notNull(), NULL, removeFromCache(), LLImageWorker::requestDecodedAuxData(), LLImageWorker::requestDecodedData(), S32, and LLWorkerClass::scheduleDelete().

Referenced by doWork().

bool LLTextureFetchWorker::deleteOK (  )  [virtual]

Reimplemented from LLWorkerClass.

Definition at line 963 of file lltexturefetch.cpp.

References LLWorkerClass::haveWork(), LOAD_FROM_HTTP_GET_DATA, LOAD_FROM_HTTP_GET_URL, mCacheReadHandle, mCacheWriteHandle, mFetcher, mState, LLTextureFetch::mTextureCache, LLQueuedThread::nullHandle(), LLTextureCache::readComplete(), WAIT_ON_WRITE, WRITE_TO_CACHE, and LLTextureCache::writeComplete().

bool LLTextureFetchWorker::doWork ( S32  param  )  [virtual]

Implements LLWorkerClass.

Definition at line 526 of file lltexturefetch.cpp.

References LLTextureFetch::addToNetworkQueue(), LLUUID::asString(), CACHE_POST, clearPackets(), DECODE_IMAGE, DECODE_IMAGE_UPDATE, decodeImage(), DONE, FALSE, FIRST_PACKET_SIZE, gAgent, LLCurl::getByteRange(), LLViewerRegion::getCapability(), LLAgent::getRegion(), INIT, LLPointer< Type >::isNull(), llassert_always, llendl, llwarns, LOAD_FROM_HTTP_GET_DATA, LOAD_FROM_HTTP_GET_URL, LOAD_FROM_NETWORK, LOAD_FROM_SIMULATOR, LOAD_FROM_TEXTURE_CACHE, LLTextureFetch::lockQueue(), mAuxImage, MAX_IMG_PACKET_SIZE, mBuffer, mBufferSize, mCachedSize, mCacheReadHandle, mCacheWriteHandle, LLTextureFetch::mDebugCount, LLTextureFetch::mDebugID, LLTextureFetch::mDebugPause, mDecoded, mDecodedDiscard, mDesiredDiscard, mDesiredSize, mFetcher, mFetchTimer, mFileSize, mFirstPacket, mFormattedImage, mHaveAllData, mID, mImageWorker, mInLocalCache, mLastPacket, mLoaded, mLoadedDiscard, mRawImage, mRequestedDiscard, mRequestedSize, mRetryAttempt, mSentRequest, mState, LLTextureFetch::mTextureCache, mTotalPackets, mURL, mWorkMutex, mWorkPriority, mWritten, LLPointer< Type >::notNull(), NULL, LLQueuedThread::nullHandle(), LLHTTPClient::post(), LLTextureCache::prioritizeWrite(), LLQueuedThread::PRIORITY_HIGH, LLQueuedThread::PRIORITY_LOW, LLQueuedThread::PRIORITY_NORMAL, processSimulatorPackets(), QUEUED, LLTextureCache::readComplete(), LLTextureCache::readFromCache(), removeFromCache(), LLTextureFetch::removeFromNetworkQueue(), LLFrameTimer::reset(), resetFormattedData(), S32, tut::sd(), LLWorkerClass::setPriority(), size, TRUE, LLTextureFetch::unlockQueue(), UNSENT, WAIT_ON_WRITE, WRITE_TO_CACHE, LLTextureCache::writeToCache(), and writeToCacheComplete().

void LLTextureFetchWorker::endWork ( S32  param,
bool  aborted 
) [private, virtual]

Implements LLWorkerClass.

Definition at line 934 of file lltexturefetch.cpp.

References mFormattedImage, mImageWorker, NULL, and LLWorkerClass::scheduleDelete().

void LLTextureFetchWorker::finishWork ( S32  param,
bool  completed 
) [virtual]

Reimplemented from LLWorkerClass.

Definition at line 947 of file lltexturefetch.cpp.

References mCacheReadHandle, mCacheWriteHandle, mFetcher, LLTextureFetch::mTextureCache, LLQueuedThread::nullHandle(), LLTextureCache::readComplete(), and LLTextureCache::writeComplete().

bool LLTextureFetchWorker::insertPacket ( S32  index,
U8 data,
S32  size 
) [private]

Definition at line 1651 of file lltexturefetch.cpp.

References MAX_IMG_PACKET_SIZE, mLastPacket, mPackets, mRequestedTimer, mTotalPackets, NULL, LLFrameTimer::reset(), and S32.

Referenced by LLTextureFetch::receiveImageHeader(), and LLTextureFetch::receiveImagePacket().

void LLTextureFetchWorker::lockWorkData (  )  [inline, private]

Definition at line 249 of file lltexturefetch.cpp.

References LLMutex::lock(), and mWorkMutex.

Referenced by LLTextureFetch::createRequest(), LLTextureFetch::getFetchState(), LLTextureFetch::getRequestFinished(), LLTextureFetch::receiveImageHeader(), LLTextureFetch::receiveImagePacket(), LLTextureFetch::updateRequestPriority(), and ~LLTextureFetchWorker().

bool LLTextureFetchWorker::processSimulatorPackets (  )  [private]

Definition at line 1013 of file lltexturefetch.cpp.

References i, llassert_always, mData, mFirstPacket, mFormattedImage, mHaveAllData, mLastPacket, mLoadedDiscard, mPackets, mRequestedDiscard, mRequestedSize, mSize, mTotalPackets, S32, and TRUE.

Referenced by doWork().

void LLTextureFetchWorker::relese (  )  [inline]

Definition at line 227 of file lltexturefetch.cpp.

References mActiveCount.

void LLTextureFetchWorker::removeFromCache (  )  [private]

Definition at line 1002 of file lltexturefetch.cpp.

References mFetcher, mID, mInLocalCache, LLTextureFetch::mTextureCache, and LLTextureCache::removeFromCache().

Referenced by decodeImage(), and doWork().

void LLTextureFetchWorker::resetFormattedData (  )  [private]

Definition at line 504 of file lltexturefetch.cpp.

References FALSE, mBuffer, mBufferSize, mFormattedImage, mHaveAllData, LLPointer< Type >::notNull(), and NULL.

Referenced by doWork().

void LLTextureFetchWorker::setDesiredDiscard ( S32  discard,
S32  size 
) [private]

Definition at line 457 of file lltexturefetch.cpp.

References LLWorkerClass::addWork(), calcWorkPriority(), DONE, LLWorkerClass::haveWork(), INIT, LLTextureFetch::mDebugPause, mDesiredDiscard, mDesiredSize, mFetcher, mState, mWorkPriority, LLQueuedThread::PRIORITY_HIGH, and LLWorkerClass::setPriority().

Referenced by LLTextureFetch::createRequest(), and LLTextureFetchWorker().

void LLTextureFetchWorker::setImagePriority ( F32  priority  )  [private]

Definition at line 491 of file lltexturefetch.cpp.

References calcWorkPriority(), DONE, f, LLWorkerClass::getPriority(), mImagePriority, mState, mWorkPriority, LLQueuedThread::PRIORITY_HIGHBITS, and LLWorkerClass::setPriority().

Referenced by LLTextureFetch::createRequest(), and LLTextureFetch::updateRequestPriority().

void LLTextureFetchWorker::startWork ( S32  param  )  [private, virtual]

Implements LLWorkerClass.

Definition at line 517 of file lltexturefetch.cpp.

References LLPointer< Type >::isNull(), llassert, mFormattedImage, mImageWorker, and NULL.

void LLTextureFetchWorker::unlockWorkData (  )  [inline, private]

Definition at line 250 of file lltexturefetch.cpp.

References mWorkMutex, and LLMutex::unlock().

Referenced by LLTextureFetch::createRequest(), LLTextureFetch::getFetchState(), LLTextureFetch::getRequestFinished(), LLTextureFetch::receiveImageHeader(), LLTextureFetch::receiveImagePacket(), LLTextureFetch::updateRequestPriority(), and ~LLTextureFetchWorker().

bool LLTextureFetchWorker::writeToCacheComplete (  )  [private]

Definition at line 1233 of file lltexturefetch.cpp.

References mCacheWriteHandle, mFetcher, LLTextureFetch::mTextureCache, mWritten, LLQueuedThread::nullHandle(), and LLTextureCache::writeComplete().

Referenced by doWork().


Friends And Related Function Documentation

friend class LLTextureFetch [friend]

Definition at line 56 of file lltexturefetch.cpp.


Member Data Documentation

S32 LLTextureFetchWorker::mActiveCount [private]

Definition at line 322 of file lltexturefetch.cpp.

Referenced by LLTextureFetch::createRequest(), and relese().

LLPointer<LLImageRaw> LLTextureFetchWorker::mAuxImage [private]

Definition at line 291 of file lltexturefetch.cpp.

Referenced by decodeImage(), doWork(), and LLTextureFetch::getRequestFinished().

U8* LLTextureFetchWorker::mBuffer [private]

Definition at line 307 of file lltexturefetch.cpp.

Referenced by callbackHttpGet(), doWork(), and resetFormattedData().

S32 LLTextureFetchWorker::mBufferSize [private]

Definition at line 308 of file lltexturefetch.cpp.

Referenced by callbackHttpGet(), doWork(), and resetFormattedData().

S32 LLTextureFetchWorker::mCachedSize [private]

Definition at line 312 of file lltexturefetch.cpp.

Referenced by doWork().

LLTextureCache::handle_t LLTextureFetchWorker::mCacheReadHandle [private]

Definition at line 305 of file lltexturefetch.cpp.

Referenced by deleteOK(), doWork(), finishWork(), and ~LLTextureFetchWorker().

LLTextureCache::handle_t LLTextureFetchWorker::mCacheWriteHandle [private]

Definition at line 306 of file lltexturefetch.cpp.

Referenced by deleteOK(), doWork(), finishWork(), writeToCacheComplete(), and ~LLTextureFetchWorker().

BOOL LLTextureFetchWorker::mDecoded [private]

Definition at line 315 of file lltexturefetch.cpp.

Referenced by doWork().

S32 LLTextureFetchWorker::mDecodedDiscard [private]

Definition at line 302 of file lltexturefetch.cpp.

Referenced by decodeImage(), doWork(), and LLTextureFetch::getRequestFinished().

S32 LLTextureFetchWorker::mDesiredDiscard [private]

Definition at line 298 of file lltexturefetch.cpp.

Referenced by doWork(), LLTextureFetch::sendRequestListToSimulators(), and setDesiredDiscard().

S32 LLTextureFetchWorker::mDesiredSize [private]

Definition at line 310 of file lltexturefetch.cpp.

Referenced by doWork(), and setDesiredDiscard().

LLTextureFetch* LLTextureFetchWorker::mFetcher [private]

Definition at line 287 of file lltexturefetch.cpp.

Referenced by deleteOK(), doWork(), finishWork(), LLTextureFetchWorker(), removeFromCache(), setDesiredDiscard(), writeToCacheComplete(), and ~LLTextureFetchWorker().

LLFrameTimer LLTextureFetchWorker::mFetchTimer [private]

Definition at line 304 of file lltexturefetch.cpp.

Referenced by doWork(), and LLTextureFetch::getFetchState().

S32 LLTextureFetchWorker::mFileSize [private]

Definition at line 311 of file lltexturefetch.cpp.

Referenced by callbackCacheRead(), doWork(), LLTextureFetch::getFetchState(), and LLTextureFetch::receiveImageHeader().

S32 LLTextureFetchWorker::mFirstPacket [private]

Definition at line 335 of file lltexturefetch.cpp.

Referenced by clearPackets(), doWork(), and processSimulatorPackets().

LLPointer<LLImageFormatted> LLTextureFetchWorker::mFormattedImage [private]

Definition at line 289 of file lltexturefetch.cpp.

Referenced by callbackCacheRead(), callbackHttpGet(), decodeImage(), doWork(), endWork(), LLTextureFetch::getFetchState(), processSimulatorPackets(), resetFormattedData(), startWork(), and ~LLTextureFetchWorker().

BOOL LLTextureFetchWorker::mHaveAllData [private]

Definition at line 318 of file lltexturefetch.cpp.

Referenced by callbackCacheRead(), callbackHttpGet(), doWork(), processSimulatorPackets(), and resetFormattedData().

LLHost LLTextureFetchWorker::mHost [private]

Definition at line 293 of file lltexturefetch.cpp.

Referenced by LLTextureFetch::createRequest(), LLTextureFetch::removeRequest(), and LLTextureFetch::sendRequestListToSimulators().

LLUUID LLTextureFetchWorker::mID [private]

Definition at line 292 of file lltexturefetch.cpp.

Referenced by LLTextureFetch::addToNetworkQueue(), callbackCacheRead(), callbackCacheWrite(), callbackDecoded(), callbackHttpGet(), decodeImage(), doWork(), LLTextureFetch::dump(), removeFromCache(), LLTextureFetch::removeFromNetworkQueue(), LLTextureFetch::removeRequest(), and LLTextureFetch::sendRequestListToSimulators().

U8 LLTextureFetchWorker::mImageCodec [private]

Definition at line 338 of file lltexturefetch.cpp.

Referenced by callbackCacheRead(), and LLTextureFetch::receiveImageHeader().

F32 LLTextureFetchWorker::mImagePriority [private]

Definition at line 295 of file lltexturefetch.cpp.

Referenced by calcWorkPriority(), LLTextureFetch::getFetchState(), LLTextureFetchWorker::Compare::operator()(), LLTextureFetch::sendRequestListToSimulators(), and setImagePriority().

LLImageWorker* LLTextureFetchWorker::mImageWorker [private]

Definition at line 288 of file lltexturefetch.cpp.

Referenced by decodeImage(), doWork(), endWork(), startWork(), and ~LLTextureFetchWorker().

BOOL LLTextureFetchWorker::mInLocalCache [private]

Definition at line 319 of file lltexturefetch.cpp.

Referenced by callbackCacheRead(), doWork(), and removeFromCache().

S32 LLTextureFetchWorker::mLastPacket [private]

Definition at line 336 of file lltexturefetch.cpp.

Referenced by clearPackets(), doWork(), LLTextureFetch::getFetchState(), insertPacket(), processSimulatorPackets(), LLTextureFetch::receiveImageHeader(), LLTextureFetch::receiveImagePacket(), and LLTextureFetch::sendRequestListToSimulators().

BOOL LLTextureFetchWorker::mLoaded [private]

Definition at line 313 of file lltexturefetch.cpp.

Referenced by callbackCacheRead(), callbackHttpGet(), callbackURLReceived(), and doWork().

S32 LLTextureFetchWorker::mLoadedDiscard [private]

Definition at line 301 of file lltexturefetch.cpp.

Referenced by doWork(), and processSimulatorPackets().

BOOL LLTextureFetchWorker::mNeedsAux [private]

Definition at line 317 of file lltexturefetch.cpp.

Referenced by LLTextureFetch::createRequest(), and decodeImage().

std::vector<PacketData*> LLTextureFetchWorker::mPackets [private]

Definition at line 334 of file lltexturefetch.cpp.

Referenced by clearPackets(), insertPacket(), and processSimulatorPackets().

LLPointer<LLImageRaw> LLTextureFetchWorker::mRawImage [private]

Definition at line 290 of file lltexturefetch.cpp.

Referenced by decodeImage(), doWork(), and LLTextureFetch::getRequestFinished().

S32 LLTextureFetchWorker::mRequestedDiscard [private]

Definition at line 300 of file lltexturefetch.cpp.

Referenced by doWork(), and processSimulatorPackets().

F32 LLTextureFetchWorker::mRequestedPriority [private]

Definition at line 297 of file lltexturefetch.cpp.

Referenced by LLTextureFetch::getFetchState(), and LLTextureFetch::sendRequestListToSimulators().

S32 LLTextureFetchWorker::mRequestedSize [private]

Definition at line 309 of file lltexturefetch.cpp.

Referenced by callbackHttpGet(), doWork(), and processSimulatorPackets().

LLFrameTimer LLTextureFetchWorker::mRequestedTimer [private]

Definition at line 303 of file lltexturefetch.cpp.

Referenced by LLTextureFetch::getFetchState(), insertPacket(), and LLTextureFetch::sendRequestListToSimulators().

S32 LLTextureFetchWorker::mRetryAttempt [private]

Definition at line 320 of file lltexturefetch.cpp.

Referenced by doWork().

e_request_state LLTextureFetchWorker::mSentRequest [private]

Definition at line 314 of file lltexturefetch.cpp.

Referenced by callbackHttpGet(), callbackURLReceived(), doWork(), and LLTextureFetch::receiveImageHeader().

S32 LLTextureFetchWorker::mSimRequestedDiscard [private]

Definition at line 299 of file lltexturefetch.cpp.

Referenced by LLTextureFetch::sendRequestListToSimulators().

e_state LLTextureFetchWorker::mState [private]

Definition at line 286 of file lltexturefetch.cpp.

Referenced by callbackCacheRead(), callbackCacheWrite(), callbackDecoded(), callbackHttpGet(), callbackURLReceived(), LLTextureFetch::createRequest(), deleteOK(), doWork(), LLTextureFetch::dump(), LLTextureFetch::getFetchState(), LLTextureFetch::getRequestFinished(), LLTextureFetch::receiveImageHeader(), LLTextureFetch::receiveImagePacket(), setDesiredDiscard(), and setImagePriority().

U16 LLTextureFetchWorker::mTotalPackets [private]

Definition at line 337 of file lltexturefetch.cpp.

Referenced by clearPackets(), doWork(), insertPacket(), processSimulatorPackets(), LLTextureFetch::receiveImageHeader(), and LLTextureFetch::sendRequestListToSimulators().

U8 LLTextureFetchWorker::mType [private]

Definition at line 294 of file lltexturefetch.cpp.

Referenced by LLTextureFetchWorker().

std::string LLTextureFetchWorker::mURL [private]

Definition at line 321 of file lltexturefetch.cpp.

Referenced by callbackURLReceived(), and doWork().

LLMutex LLTextureFetchWorker::mWorkMutex [private]

Definition at line 325 of file lltexturefetch.cpp.

Referenced by callbackCacheRead(), callbackCacheWrite(), callbackHttpGet(), callbackURLReceived(), doWork(), lockWorkData(), and unlockWorkData().

U32 LLTextureFetchWorker::mWorkPriority [private]

Definition at line 296 of file lltexturefetch.cpp.

Referenced by calcWorkPriority(), callbackCacheRead(), callbackCacheWrite(), callbackDecoded(), callbackHttpGet(), callbackURLReceived(), LLTextureFetch::createRequest(), doWork(), LLTextureFetch::getRequestFinished(), LLTextureFetchWorker(), LLTextureFetch::receiveImageHeader(), LLTextureFetch::receiveImagePacket(), setDesiredDiscard(), and setImagePriority().

BOOL LLTextureFetchWorker::mWritten [private]

Definition at line 316 of file lltexturefetch.cpp.

Referenced by callbackCacheWrite(), doWork(), and writeToCacheComplete().

const char * LLTextureFetchWorker::sStateDescs [static, private]

Initial value:

 {
        "INVALID",
        "INIT",
        "LOAD_FROM_TEXTURE_CACHE",
        "CACHE_POST",
        "LOAD_FROM_NETWORK",
        "LOAD_FROM_SIMULATOR",
        "LOAD_FROM_HTTP_URL",
        "LOAD_FROM_HTTP_DATA",
        "DECODE_IMAGE",
        "DECODE_IMAGE_UPDATE",
        "WRITE_TO_CACHE",
        "WAIT_ON_WRITE",
        "DONE",
}

Definition at line 285 of file lltexturefetch.cpp.

Referenced by LLTextureFetch::dump().


The documentation for this class was generated from the following file:
Generated on Thu Jul 1 06:11:51 2010 for Second Life Viewer by  doxygen 1.4.7