Bug 1412542 - Fix crashes on products other than Firefox. draft
authorBoris Chiou <boris.chiou@gmail.com>
Sat, 28 Oct 2017 20:49:08 +0200
changeset 688192 efdbe1890f7fefdce085d777d6a774acb5e30b3e
parent 688189 908af7f6a7257012a6cdd90f95dcd9b04f56c832
child 737807 9c8435427f1400399a2289fb856b8e7b04693031
push id86683
push userbmo:boris.chiou@gmail.com
push dateSat, 28 Oct 2017 19:43:10 +0000
bugs1412542
milestone58.0a1
Bug 1412542 - Fix crashes on products other than Firefox. MozReview-Commit-ID: G9DeMR5o8F3
gfx/config/gfxVars.h
--- a/gfx/config/gfxVars.h
+++ b/gfx/config/gfxVars.h
@@ -42,20 +42,20 @@ class gfxVarReceiver;
   _(UseOMTP,                    bool,             false)                \
   _(AllowD3D11KeyedMutex,       bool,             false)                \
 
   /* Add new entries above this line. */
 
 // Define the default animation backend on the compositor. Now we don't use
 // stylo on the compositor only on Android, and this is a fixed flag. If
 // we want to update this flag, please add a new gfxVars for it.
-#if defined(ANDROID)
+#if defined(MOZ_STYLO) && !defined(ANDROID)
+  #define USE_STYLO_ON_COMPOSITOR true
+#else
   #define USE_STYLO_ON_COMPOSITOR false
-#else
-  #define USE_STYLO_ON_COMPOSITOR true
 #endif
 
 // Some graphics settings are computed on the UI process and must be
 // communicated to content and GPU processes. gfxVars helps facilitate
 // this. Its function is similar to gfxPrefs, except rather than hold
 // user preferences, it holds dynamically computed values.
 //
 // Each variable in GFX_VARS_LIST exposes the following static methods: