Bug 1599673 - Add webrender compositor enabled log to Decision Log in about:support r=nical,jrmuizel
authorsotaro <sotaro.ikeda.g@gmail.com>
Thu, 12 Dec 2019 22:16:35 +0000
changeset 506770 61ec58edfd13861591d5cd4b6387de92b35f23e3
parent 506769 98af9fbfc0ec2f7726f1012b1353f094fa4db7ed
child 506771 01189bae57067a2d3afe477a9ee5a4fe3479c5f1
push id36911
push usercsabou@mozilla.com
push dateFri, 13 Dec 2019 04:07:58 +0000
treeherdermozilla-central@61ec58edfd13 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical, jrmuizel
bugs1599673
milestone73.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1599673 - Add webrender compositor enabled log to Decision Log in about:support r=nical,jrmuizel FeatureState does not add a log when it is enabled by default. But we want it for Feature::WEBRENDER_COMPOSITOR. Differential Revision: https://phabricator.services.mozilla.com/D56848
gfx/thebes/gfxPlatform.cpp
--- a/gfx/thebes/gfxPlatform.cpp
+++ b/gfx/thebes/gfxPlatform.cpp
@@ -3321,16 +3321,19 @@ void gfxPlatform::InitWebRenderConfig() 
     featureComp.ForceDisable(FeatureStatus::Unavailable,
                              "No DirectComposition usage",
                              NS_LITERAL_CSTRING("FEATURE_FAILURE_BLACKLIST"));
   }
 #endif
 
   if (gfx::gfxConfig::IsEnabled(gfx::Feature::WEBRENDER_COMPOSITOR)) {
     gfxVars::SetUseWebRenderCompositor(true);
+    // Call UserEnable() only for reporting to Decision Log.
+    // If feature is enabled by default. It is not reported to Decision Log.
+    featureComp.UserEnable("Enabled");
   }
 
   // Set features that affect WR's RendererOptions
   gfxVars::SetUseGLSwizzle(
       IsFeatureSupported(nsIGfxInfo::FEATURE_GL_SWIZZLE, true));
 
   // The RemoveShaderCacheFromDiskIfNecessary() needs to be called after
   // WebRenderConfig initialization.