зеркало из https://github.com/mozilla/pjs.git
Bug 594876 - Turn OpenGL compositing on by default on X11. r=joe
This commit is contained in:
Родитель
79eb8b98c8
Коммит
04cb43744e
|
@ -71,6 +71,10 @@ switch(osName)
|
|||
}
|
||||
break;
|
||||
|
||||
case "Linux":
|
||||
isnot(acceleratedWindows, 0, "Acceleration enabled on Linux");
|
||||
break;
|
||||
|
||||
default:
|
||||
is(acceleratedWindows, 0, "Acceleration not supported on '" + osName + "'");
|
||||
}
|
||||
|
|
|
@ -778,7 +778,7 @@ nsBaseWidget::AutoUseBasicLayerManager::~AutoUseBasicLayerManager()
|
|||
PRBool
|
||||
nsBaseWidget::GetShouldAccelerate()
|
||||
{
|
||||
#if defined(XP_WIN) || defined(ANDROID) || (MOZ_PLATFORM_MAEMO > 5)
|
||||
#if defined(XP_WIN) || defined(ANDROID) || (MOZ_PLATFORM_MAEMO > 5) || (!defined(MOZ_PLATFORM_MAEMO) && defined(MOZ_X11))
|
||||
PRBool accelerateByDefault = PR_TRUE;
|
||||
#elif defined(XP_MACOSX)
|
||||
/* quickdraw plugins don't work with OpenGL so we need to avoid OpenGL when we want to support
|
||||
|
|
Загрузка…
Ссылка в новой задаче