Disable OMTP only if edge padding is enabled and tiling is also enabled (bug 1424325, r=bas) draft
authorRyan Hunt <rhunt@eqrion.net>
Fri, 08 Dec 2017 14:58:56 -0600
changeset 710173 581acc3572f63c64cb5fc299e5aedb76841bd187
parent 709637 a461fe03fdb07218b7f50e92c59dde64b8f8a5b0
child 743533 024776b39ebd95f68c2c2a2a9e8a6aa6208381d1
push id92769
push userbmo:rhunt@eqrion.net
push dateFri, 08 Dec 2017 20:52:10 +0000
reviewersbas
bugs1424325
milestone59.0a1
Disable OMTP only if edge padding is enabled and tiling is also enabled (bug 1424325, r=bas) MozReview-Commit-ID: K1B7kTCMDDt
gfx/thebes/gfxPlatform.cpp
--- a/gfx/thebes/gfxPlatform.cpp
+++ b/gfx/thebes/gfxPlatform.cpp
@@ -2583,17 +2583,17 @@ gfxPlatform::InitOMTPConfig()
   if (mContentBackend == BackendType::CAIRO) {
     omtp.ForceDisable(FeatureStatus::Broken, "OMTP is not supported when using cairo",
       NS_LITERAL_CSTRING("FEATURE_FAILURE_COMP_PREF"));
   }
 
   if (InSafeMode()) {
     omtp.ForceDisable(FeatureStatus::Blocked, "OMTP blocked by safe-mode",
                       NS_LITERAL_CSTRING("FEATURE_FAILURE_COMP_SAFEMODE"));
-  } else if (gfxPrefs::TileEdgePaddingEnabled()) {
+  } else if (gfxPrefs::LayersTilesEnabled() && gfxPrefs::TileEdgePaddingEnabled()) {
     omtp.ForceDisable(FeatureStatus::Blocked, "OMTP does not yet support tiling with edge padding",
                       NS_LITERAL_CSTRING("FEATURE_FAILURE_OMTP_TILING"));
   }
 
   if (omtp.IsEnabled()) {
     gfxVars::SetUseOMTP(true);
     reporter.SetSuccessful();
   }