Definition at line 54 of file lltexturefetch.cpp.
enum LLTextureFetchWorker::e_request_state [private] |
Definition at line 277 of file lltexturefetch.cpp.
enum LLTextureFetchWorker::e_state [private] |
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.
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.
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().
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().
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().
Implements LLWorkerClass.
Definition at line 934 of file lltexturefetch.cpp.
References mFormattedImage, mImageWorker, NULL, and LLWorkerClass::scheduleDelete().
Reimplemented from LLWorkerClass.
Definition at line 947 of file lltexturefetch.cpp.
References mCacheReadHandle, mCacheWriteHandle, mFetcher, LLTextureFetch::mTextureCache, LLQueuedThread::nullHandle(), LLTextureCache::readComplete(), and LLTextureCache::writeComplete().
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] |
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().
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().
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().
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().
friend class LLTextureFetch [friend] |
Definition at line 56 of file lltexturefetch.cpp.
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 305 of file lltexturefetch.cpp.
Referenced by deleteOK(), doWork(), finishWork(), and ~LLTextureFetchWorker().
Definition at line 306 of file lltexturefetch.cpp.
Referenced by deleteOK(), doWork(), finishWork(), writeToCacheComplete(), and ~LLTextureFetchWorker().
BOOL LLTextureFetchWorker::mDecoded [private] |
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] |
LLTextureFetch* LLTextureFetchWorker::mFetcher [private] |
Definition at line 287 of file lltexturefetch.cpp.
Referenced by deleteOK(), doWork(), finishWork(), LLTextureFetchWorker(), removeFromCache(), setDesiredDiscard(), writeToCacheComplete(), and ~LLTextureFetchWorker().
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().
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().
Definition at line 303 of file lltexturefetch.cpp.
Referenced by LLTextureFetch::getFetchState(), insertPacket(), and LLTextureFetch::sendRequestListToSimulators().
S32 LLTextureFetchWorker::mRetryAttempt [private] |
Definition at line 314 of file lltexturefetch.cpp.
Referenced by callbackHttpGet(), callbackURLReceived(), doWork(), and LLTextureFetch::receiveImageHeader().
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] |
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().