mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 605547: Enable D3D10 layers by default. r=jrmuizel a=blocking-beta8
This commit is contained in:
parent
f2b22b6625
commit
334f7c09ff
@ -3241,7 +3241,7 @@ pref("gfx.direct2d.disabled", false);
|
||||
pref("gfx.direct2d.force-enabled", false);
|
||||
|
||||
pref("layers.prefer-opengl", false);
|
||||
pref("layers.use-d3d10", false);
|
||||
pref("layers.prefer-d3d9", false);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -3136,7 +3136,7 @@ nsWindow::GetLayerManager(bool* aAllowRetaining)
|
||||
PRBool accelerateByDefault = PR_TRUE;
|
||||
PRBool disableAcceleration = PR_FALSE;
|
||||
PRBool preferOpenGL = PR_FALSE;
|
||||
PRBool useD3D10 = PR_FALSE;
|
||||
PRBool preferD3D9 = PR_FALSE;
|
||||
if (prefs) {
|
||||
prefs->GetBoolPref("layers.accelerate-all",
|
||||
&accelerateByDefault);
|
||||
@ -3144,8 +3144,8 @@ nsWindow::GetLayerManager(bool* aAllowRetaining)
|
||||
&disableAcceleration);
|
||||
prefs->GetBoolPref("layers.prefer-opengl",
|
||||
&preferOpenGL);
|
||||
prefs->GetBoolPref("layers.use-d3d10",
|
||||
&useD3D10);
|
||||
prefs->GetBoolPref("layers.prefer-d3d9",
|
||||
&preferD3D9);
|
||||
}
|
||||
|
||||
const char *acceleratedEnv = PR_GetEnv("MOZ_ACCELERATED");
|
||||
@ -3170,7 +3170,7 @@ nsWindow::GetLayerManager(bool* aAllowRetaining)
|
||||
|
||||
if (mUseAcceleratedRendering) {
|
||||
#ifdef MOZ_ENABLE_D3D10_LAYER
|
||||
if (useD3D10) {
|
||||
if (!preferD3D9) {
|
||||
nsRefPtr<mozilla::layers::LayerManagerD3D10> layerManager =
|
||||
new mozilla::layers::LayerManagerD3D10(this);
|
||||
if (layerManager->Initialize()) {
|
||||
|
Loading…
Reference in New Issue
Block a user