#include <llfeaturemanager.h>
Public Member Functions | |
LLFeatureManager () | |
~LLFeatureManager () | |
void | init () |
void | maskCurrentList (const char *name) |
BOOL | loadFeatureTables () |
EGPUClass | getGPUClass () |
std::string & | getGPUString () |
BOOL | isGPUSupported () |
void | cleanupFeatureTables () |
S32 | getVersion () const |
void | setSafe (const BOOL safe) |
BOOL | isSafe () const |
LLFeatureList * | findMask (const char *name) |
BOOL | maskFeatures (const char *name) |
void | setGraphicsLevel (S32 level, bool skipFeatures) |
void | applyBaseMasks () |
void | applyRecommendedSettings () |
void | applyFeatures (bool skipFeatures) |
Protected Member Functions | |
void | loadGPUClass () |
void | initBaseMask () |
Protected Attributes | |
std::map< LLString, LLFeatureList * > | mMaskList |
std::set< LLString > | mSkippedFeatures |
BOOL | mInited |
S32 | mTableVersion |
BOOL | mSafe |
EGPUClass | mGPUClass |
std::string | mGPUString |
BOOL | mGPUSupported |
Definition at line 97 of file llfeaturemanager.h.
LLFeatureManager::LLFeatureManager | ( | ) | [inline] |
Definition at line 100 of file llfeaturemanager.h.
LLFeatureManager::~LLFeatureManager | ( | ) | [inline] |
Definition at line 101 of file llfeaturemanager.h.
References cleanupFeatureTables().
void LLFeatureManager::init | ( | void | ) |
Definition at line 420 of file llfeaturemanager.cpp.
References applyBaseMasks(), loadFeatureTables(), and loadGPUClass().
Referenced by LLViewerWindow::LLViewerWindow().
void LLFeatureManager::maskCurrentList | ( | const char * | name | ) |
BOOL LLFeatureManager::loadFeatureTables | ( | ) |
Definition at line 213 of file llfeaturemanager.cpp.
References LLFeatureList::addFeature(), FALSE, FEATURE_TABLE_FILENAME, gDirUtilp, LLDir::getAppRODataDir(), LLDir::getDirDelimiter(), LL_ENDL, LL_ERRS, LL_WARNS, LLFeatureList::LLFeatureList(), llifstream, MAX_STRING, mMaskList, mSkippedFeatures, mTableVersion, NULL, S32, and TRUE.
Referenced by init().
EGPUClass LLFeatureManager::getGPUClass | ( | ) | [inline] |
Definition at line 110 of file llfeaturemanager.h.
References mGPUClass.
Referenced by send_stats(), and LLShaderMgr::setShaders().
std::string& LLFeatureManager::getGPUString | ( | ) | [inline] |
Definition at line 111 of file llfeaturemanager.h.
References mGPUString.
Referenced by send_stats().
BOOL LLFeatureManager::isGPUSupported | ( | ) | [inline] |
void LLFeatureManager::cleanupFeatureTables | ( | ) |
Definition at line 414 of file llfeaturemanager.cpp.
References mMaskList.
Referenced by ~LLFeatureManager().
S32 LLFeatureManager::getVersion | ( | ) | const [inline] |
Definition at line 116 of file llfeaturemanager.h.
References mTableVersion.
Referenced by idle_startup(), and LLViewerWindow::LLViewerWindow().
void LLFeatureManager::setSafe | ( | const BOOL | safe | ) | [inline] |
BOOL LLFeatureManager::isSafe | ( | ) | const [inline] |
Definition at line 118 of file llfeaturemanager.h.
References mSafe.
Referenced by applyBaseMasks(), and LLViewerWindow::LLViewerWindow().
LLFeatureList * LLFeatureManager::findMask | ( | const char * | name | ) |
Definition at line 191 of file llfeaturemanager.cpp.
References mMaskList, and NULL.
Referenced by applyBaseMasks(), and maskFeatures().
BOOL LLFeatureManager::maskFeatures | ( | const char * | name | ) |
Definition at line 201 of file llfeaturemanager.cpp.
References FALSE, findMask(), LL_DEBUGS, LL_ENDL, and LLFeatureList::maskList().
Referenced by applyBaseMasks(), and setGraphicsLevel().
void LLFeatureManager::setGraphicsLevel | ( | S32 | level, | |
bool | skipFeatures | |||
) |
Definition at line 515 of file llfeaturemanager.cpp.
References applyBaseMasks(), applyFeatures(), and maskFeatures().
Referenced by applyRecommendedSettings(), LLViewerWindow::LLViewerWindow(), and LLPanelDisplay::onChangeQuality().
void LLFeatureManager::applyBaseMasks | ( | ) |
Definition at line 541 of file llfeaturemanager.cpp.
References findMask(), LLFeatureList::getFeatures(), LLCPUInfo::getMhz(), LLMemoryInfo::getPhysicalMemoryClamped(), gGLManager, isSafe(), LL_ENDL, LL_INFOS, LL_WARNS, maskFeatures(), LLFeatureList::mFeatures, LLGLManager::mGLVersion, mGPUClass, mGPUString, LLGLManager::mHasFragmentShader, LLGLManager::mHasVertexShader, LLGLManager::mIsATI, LLGLManager::mIsGF2or4MX, LLGLManager::mIsGFFX, LLGLManager::mIsIntel, LLGLManager::mIsNVIDIA, and NULL.
Referenced by init(), and setGraphicsLevel().
void LLFeatureManager::applyRecommendedSettings | ( | ) |
Definition at line 432 of file llfeaturemanager.cpp.
References FALSE, LLControlGroup::getBOOL(), GPU_CLASS_0, GPU_CLASS_2, gSavedSettings, llendl, llinfos, llmax(), llmin(), mGPUClass, S32, LLControlGroup::setBOOL(), LLControlGroup::setF32(), setGraphicsLevel(), and LLControlGroup::setU32().
Referenced by LLViewerWindow::LLViewerWindow(), and LLPanelDisplay::setHardwareDefaults().
void LLFeatureManager::applyFeatures | ( | bool | skipFeatures | ) |
Definition at line 460 of file llfeaturemanager.cpp.
References LLFeatureList::dump(), LLControlGroup::getControl(), LLFeatureList::getRecommendedValue(), gSavedSettings, LLControlVariable::isType(), llendl, llwarns, LLFeatureList::mFeatures, mSkippedFeatures, NULL, S32, LLControlGroup::setBOOL(), LLControlGroup::setF32(), LLControlGroup::setS32(), LLControlGroup::setU32(), TYPE_BOOLEAN, TYPE_F32, TYPE_S32, and TYPE_U32.
Referenced by setGraphicsLevel().
void LLFeatureManager::loadGPUClass | ( | ) | [protected] |
Definition at line 311 of file llfeaturemanager.cpp.
References FALSE, gDirUtilp, LLDir::getAppRODataDir(), LLDir::getDirDelimiter(), LLGLManager::getRawGLString(), gGLManager, GPU_CLASS_UNKNOWN, GPU_TABLE_FILENAME, i, LL_ENDL, LL_INFOS, LL_WARNS, llendl, llifstream, MAX_STRING, mGPUClass, mGPUString, mGPUSupported, and NULL.
Referenced by init().
void LLFeatureManager::initBaseMask | ( | ) | [protected] |
std::map<LLString, LLFeatureList *> LLFeatureManager::mMaskList [protected] |
Definition at line 141 of file llfeaturemanager.h.
Referenced by cleanupFeatureTables(), findMask(), and loadFeatureTables().
std::set<LLString> LLFeatureManager::mSkippedFeatures [protected] |
Definition at line 142 of file llfeaturemanager.h.
Referenced by applyFeatures(), and loadFeatureTables().
BOOL LLFeatureManager::mInited [protected] |
Definition at line 143 of file llfeaturemanager.h.
S32 LLFeatureManager::mTableVersion [protected] |
Definition at line 144 of file llfeaturemanager.h.
Referenced by getVersion(), and loadFeatureTables().
BOOL LLFeatureManager::mSafe [protected] |
EGPUClass LLFeatureManager::mGPUClass [protected] |
Definition at line 146 of file llfeaturemanager.h.
Referenced by applyBaseMasks(), applyRecommendedSettings(), getGPUClass(), and loadGPUClass().
std::string LLFeatureManager::mGPUString [protected] |
Definition at line 147 of file llfeaturemanager.h.
Referenced by applyBaseMasks(), getGPUString(), and loadGPUClass().
BOOL LLFeatureManager::mGPUSupported [protected] |
Definition at line 148 of file llfeaturemanager.h.
Referenced by isGPUSupported(), and loadGPUClass().