зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
3c02808b7d
Коммит
0b19b694c6
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче