Bug 695912: allow forcing MSAA on r=jgilbert

Allows forcing MSAA on even if we determine through the blocklist that the user
probably shouldn't be running it.
This commit is contained in:
Doug Sherk 2011-11-03 10:50:40 -04:00
Родитель 3c02808b7d
Коммит 0b19b694c6
2 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -608,11 +608,14 @@ WebGLContext::SetDimensions(PRInt32 width, PRInt32 height)
format.minAlpha = 0;
}
bool forceMSAA =
Preferences::GetBool("webgl.msaa-force", false);
PRInt32 status;
nsCOMPtr<nsIGfxInfo> gfxInfo = do_GetService("@mozilla.org/gfx/info;1");
if (mOptions.antialias &&
NS_SUCCEEDED(gfxInfo->GetFeatureStatus(nsIGfxInfo::FEATURE_WEBGL_MSAA, &status))) {
if (status == nsIGfxInfo::FEATURE_NO_INFO) {
if (status == nsIGfxInfo::FEATURE_NO_INFO || forceMSAA) {
PRUint32 msaaLevel = Preferences::GetUint("webgl.msaa-level", 2);
format.samples = msaaLevel*msaaLevel;
}

Просмотреть файл

@ -3290,6 +3290,7 @@ pref("webgl.prefer-native-gl", false);
pref("webgl.min_capability_mode", false);
pref("webgl.disable-extensions", false);
pref("webgl.msaa-level", 2);
pref("webgl.msaa-force", false);
#ifdef XP_WIN
// The default TCP send window on Windows is too small, and autotuning only occurs on receive