void primbackup::export_next_texture() { if(textures.empty()) { llinfos << "Finished exporting textures "<<llendl; return; } std::list<LLUUID>::iterator iter; iter = textures.begin(); LLUUID id; while(1) { if(iter==textures.end()) { m_nexttextureready=true; return; } id=(*iter); LLViewerImage * imagep = gImageList.hasImage(id); if(imagep!=NULL) { S32 cur_discard = imagep->getDiscardLevel(); if(cur_discard>0) { if(imagep->getBoostLevel()!=LLViewerImageBoostLevel::BOOST_PREVIEW) imagep->setBoostLevel(LLViewerImageBoostLevel::BOOST_PREVIEW); //we want to force discard 0 this one does this. } else { break; } } else { llwarns<<" We *DONT* have the texture "<<llendl; } iter++; } textures.remove(id); llinfos<<"Requesting texture "<<id<<llendl; LLImageJ2C * mFormattedImage = new LLImageJ2C; CacheReadResponder* responder = new CacheReadResponder(id, mFormattedImage); LLAppViewer::getTextureCache()->readFromCache(id,LLWorkerThread::PRIORITY_HIGH,0,999999,responder); }
void LLViewerImageList::dump() { llinfos << "LLViewerImageList::dump()" << llendl; for (image_priority_list_t::iterator it = mImageList.begin(); it != mImageList.end(); ++it) { LLViewerImage* image = *it; llinfos << "priority " << image->getDecodePriority() << " boost " << image->getBoostLevel() << " size " << image->getWidth() << "x" << image->getHeight() << " discard " << image->getDiscardLevel() << " desired " << image->getDesiredDiscardLevel() << " http://asset.siva.lindenlab.com/" << image->getID() << ".texture" << llendl; } }