summaryrefslogtreecommitdiffstats
path: root/gfx/thebes/gfxPlatform.cpp
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-09-26 13:55:38 +0200
committerGitHub <noreply@github.com>2018-09-26 13:55:38 +0200
commit326611aaaed36d4d6e44fa77e781ed3e2e43539d (patch)
treeab4388e807924f543d0d4a8ab58f7f5f25973ffc /gfx/thebes/gfxPlatform.cpp
parente3508f55bed8a463d298021633dbc7d079c9d764 (diff)
parent1c159bf4dc4885e85bcff4099168a35b18848a92 (diff)
downloadUXP-326611aaaed36d4d6e44fa77e781ed3e2e43539d.tar
UXP-326611aaaed36d4d6e44fa77e781ed3e2e43539d.tar.gz
UXP-326611aaaed36d4d6e44fa77e781ed3e2e43539d.tar.lz
UXP-326611aaaed36d4d6e44fa77e781ed3e2e43539d.tar.xz
UXP-326611aaaed36d4d6e44fa77e781ed3e2e43539d.zip
Merge pull request #788 from alaviss/apz-experimental
gfx: add pref for enabling APZ without e10s
Diffstat (limited to 'gfx/thebes/gfxPlatform.cpp')
-rw-r--r--gfx/thebes/gfxPlatform.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/gfx/thebes/gfxPlatform.cpp b/gfx/thebes/gfxPlatform.cpp
index d5af16a19..65227a8a7 100644
--- a/gfx/thebes/gfxPlatform.cpp
+++ b/gfx/thebes/gfxPlatform.cpp
@@ -2380,13 +2380,13 @@ gfxPlatform::AsyncPanZoomEnabled()
{
#if !defined(MOZ_WIDGET_ANDROID) && !defined(MOZ_WIDGET_UIKIT)
// For XUL applications (everything but Firefox on Android) we only want
- // to use APZ when E10S is enabled. If we ever get input events off the
- // main thread we can consider relaxing this requirement.
- if (!BrowserTabsRemoteAutostart()) {
+ // to use APZ when E10S is enabled or when the user explicitly enable it.
+ if (BrowserTabsRemoteAutostart() || gfxPrefs::APZDesktopEnabled()) {
+ return gfxPrefs::AsyncPanZoomEnabledDoNotUseDirectly();
+ } else {
return false;
}
-#endif
-#ifdef MOZ_WIDGET_ANDROID
+#elif defined(MOZ_WIDGET_ANDROID)
return true;
#else
return gfxPrefs::AsyncPanZoomEnabledDoNotUseDirectly();