Bug 1342520 - Add an opt-in feature status. r=dvander
authorKartikaya Gupta <kgupta@mozilla.com>
Fri, 24 Feb 2017 15:43:33 -0500
changeset 394164 8208390294f98cf877b1a088f7811d0d6d52fda0
parent 394163 e35efb0da85ffbf8ad02f9bd1765e3557db302ed
child 394165 89c1817a4d2ff73c73d42af60eff758977d9c06c
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander
bugs1342520
milestone54.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 1342520 - Add an opt-in feature status. r=dvander MozReview-Commit-ID: v6xu8L2Psz
gfx/src/gfxTelemetry.cpp
gfx/src/gfxTelemetry.h
--- a/gfx/src/gfxTelemetry.cpp
+++ b/gfx/src/gfxTelemetry.cpp
@@ -17,16 +17,18 @@ FeatureStatusToString(FeatureStatus aSta
     case FeatureStatus::Unavailable:
       return "unavailable";
     case FeatureStatus::CrashedInHandler:
       return "crashed";
     case FeatureStatus::Blocked:
       return "blocked";
     case FeatureStatus::Blacklisted:
       return "blacklisted";
+    case FeatureStatus::OptIn:
+      return "opt-in";
     case FeatureStatus::Failed:
       return "failed";
     case FeatureStatus::Disabled:
       return "disabled";
     case FeatureStatus::Available:
       return "available";
     case FeatureStatus::ForceEnabled:
       return "force_enabled";
--- a/gfx/src/gfxTelemetry.h
+++ b/gfx/src/gfxTelemetry.h
@@ -27,16 +27,20 @@ enum class FeatureStatus
 
   // This feature was blocked for reasons outside the blacklist, such as a
   // runtime test failing.
   Blocked,
 
   // This feature has been blocked by the graphics blacklist.
   Blacklisted,
 
+  // This feature is disabled by default, and so activation isn't attempted
+  // unless something explicitly enables it.
+  OptIn,
+
   // This feature was attempted but failed to activate.
   Failed,
 
   // This feature was explicitly disabled by the user.
   Disabled,
 
   // This feature is available for use.
   Available,