mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 565387: Add a pref to disable accelerated layers by force. r=vlad
This commit is contained in:
parent
9dc97fd45f
commit
f1f06de017
@ -2808,6 +2808,9 @@ pref("gfx.color_management.mode", 0);
|
||||
// Initialize default render-mode.
|
||||
pref("mozilla.widget.render-mode", -1);
|
||||
|
||||
// Initialize default accelerated layers
|
||||
pref("mozilla.widget.accelerated-layers", true);
|
||||
|
||||
// Enable/Disable the geolocation API for content
|
||||
pref("geo.enabled", true);
|
||||
|
||||
|
@ -661,7 +661,15 @@ nsBaseWidget::AutoLayerManagerSetup::~AutoLayerManagerSetup()
|
||||
LayerManager* nsBaseWidget::GetLayerManager()
|
||||
{
|
||||
if (!mLayerManager) {
|
||||
if (mUseAcceleratedRendering) {
|
||||
nsCOMPtr<nsIPrefBranch2> prefs = do_GetService(NS_PREFSERVICE_CONTRACTID);
|
||||
|
||||
PRBool allowAcceleration = PR_TRUE;
|
||||
if (prefs) {
|
||||
prefs->GetBoolPref("mozilla.widget.accelerated-layers",
|
||||
&allowAcceleration);
|
||||
}
|
||||
|
||||
if (mUseAcceleratedRendering && allowAcceleration) {
|
||||
nsRefPtr<LayerManagerOGL> layerManager =
|
||||
new mozilla::layers::LayerManagerOGL(this);
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user