Bug 1342520 - Convert gfxTelemetry.* line endings from Windows to Unix. No functional change. r=dvander
authorKartikaya Gupta <kgupta@mozilla.com>
Fri, 24 Feb 2017 15:43:33 -0500
changeset 374215 89c1817a4d2ff73c73d42af60eff758977d9c06c
parent 374214 8208390294f98cf877b1a088f7811d0d6d52fda0
child 374216 51786eff9fa18f156357ac441a2452ea4e2b4aaa
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander
bugs1342520
milestone54.0a1
Bug 1342520 - Convert gfxTelemetry.* line endings from Windows to Unix. No functional change. r=dvander MozReview-Commit-ID: DpDNbuG59yn
gfx/src/gfxTelemetry.cpp
gfx/src/gfxTelemetry.h
--- a/gfx/src/gfxTelemetry.cpp
+++ b/gfx/src/gfxTelemetry.cpp
@@ -1,61 +1,61 @@
-/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#include "gfxTelemetry.h"
-
-namespace mozilla {
-namespace gfx {
-
-const char*
-FeatureStatusToString(FeatureStatus aStatus)
-{
-  switch (aStatus) {
-    case FeatureStatus::Unused:
-      return "unused";
-    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";
-    case FeatureStatus::CrashedOnStartup:
-      return "crashed_on_startup";
-    case FeatureStatus::Broken:
-      return "broken";
-    default:
-      MOZ_ASSERT_UNREACHABLE("missing status case");
-      return "unknown";
-  }
-}
-
-bool
-IsFeatureStatusFailure(FeatureStatus aStatus)
-{
-  return !(aStatus == FeatureStatus::Unused ||
-           aStatus == FeatureStatus::Available ||
-           aStatus == FeatureStatus::ForceEnabled);
-}
-
-bool
-IsFeatureStatusSuccess(FeatureStatus aStatus)
-{
-  return aStatus == FeatureStatus::Available ||
-         aStatus == FeatureStatus::ForceEnabled;
-}
-
-} // namespace gfx
-} // namespace mozilla
+/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+#include "gfxTelemetry.h"
+
+namespace mozilla {
+namespace gfx {
+
+const char*
+FeatureStatusToString(FeatureStatus aStatus)
+{
+  switch (aStatus) {
+    case FeatureStatus::Unused:
+      return "unused";
+    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";
+    case FeatureStatus::CrashedOnStartup:
+      return "crashed_on_startup";
+    case FeatureStatus::Broken:
+      return "broken";
+    default:
+      MOZ_ASSERT_UNREACHABLE("missing status case");
+      return "unknown";
+  }
+}
+
+bool
+IsFeatureStatusFailure(FeatureStatus aStatus)
+{
+  return !(aStatus == FeatureStatus::Unused ||
+           aStatus == FeatureStatus::Available ||
+           aStatus == FeatureStatus::ForceEnabled);
+}
+
+bool
+IsFeatureStatusSuccess(FeatureStatus aStatus)
+{
+  return aStatus == FeatureStatus::Available ||
+         aStatus == FeatureStatus::ForceEnabled;
+}
+
+} // namespace gfx
+} // namespace mozilla
--- a/gfx/src/gfxTelemetry.h
+++ b/gfx/src/gfxTelemetry.h
@@ -1,74 +1,74 @@
-/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-#ifndef gfx_src_gfxTelemetry_h__
-#define gfx_src_gfxTelemetry_h__
-
-namespace mozilla {
-namespace gfx {
-
-// Describes the status of a graphics feature, in terms of whether or not we've
-// attempted to initialize the feature, and if so, whether or not it succeeded
-// (and if not, why).
-enum class FeatureStatus
-{
-  // This feature has not been requested.
-  Unused,
-
-  // This feature is unavailable due to Safe Mode, not being included with
-  // the operating system, or a dependent feature being disabled.
-  Unavailable,
-
-  // This feature crashed immediately when we tried to initialize it, but we
-  // were able to recover via SEH (or something similar).
-  CrashedInHandler,
-
-  // 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,
-
-  // This feature was explicitly force-enabled by the user.
-  ForceEnabled,
-
-  // This feature was disabled due to the startup crash guard.
-  CrashedOnStartup,
-
-  // This feature was attempted but later determined to be broken.
-  Broken,
-
-  // Add new entries above here.
-  LAST
-};
-
-const char* FeatureStatusToString(FeatureStatus aStatus);
-bool IsFeatureStatusFailure(FeatureStatus aStatus);
-bool IsFeatureStatusSuccess(FeatureStatus aStatus);
-
-enum class TelemetryDeviceCode : uint32_t {
-  Content = 0,
-  Image = 1,
-  D2D1 = 2
-};
-
-} // namespace gfx
-} // namespace mozilla
-
-#endif // gfx_src_gfxTelemetry_h__
+/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+#ifndef gfx_src_gfxTelemetry_h__
+#define gfx_src_gfxTelemetry_h__
+
+namespace mozilla {
+namespace gfx {
+
+// Describes the status of a graphics feature, in terms of whether or not we've
+// attempted to initialize the feature, and if so, whether or not it succeeded
+// (and if not, why).
+enum class FeatureStatus
+{
+  // This feature has not been requested.
+  Unused,
+
+  // This feature is unavailable due to Safe Mode, not being included with
+  // the operating system, or a dependent feature being disabled.
+  Unavailable,
+
+  // This feature crashed immediately when we tried to initialize it, but we
+  // were able to recover via SEH (or something similar).
+  CrashedInHandler,
+
+  // 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,
+
+  // This feature was explicitly force-enabled by the user.
+  ForceEnabled,
+
+  // This feature was disabled due to the startup crash guard.
+  CrashedOnStartup,
+
+  // This feature was attempted but later determined to be broken.
+  Broken,
+
+  // Add new entries above here.
+  LAST
+};
+
+const char* FeatureStatusToString(FeatureStatus aStatus);
+bool IsFeatureStatusFailure(FeatureStatus aStatus);
+bool IsFeatureStatusSuccess(FeatureStatus aStatus);
+
+enum class TelemetryDeviceCode : uint32_t {
+  Content = 0,
+  Image = 1,
+  D2D1 = 2
+};
+
+} // namespace gfx
+} // namespace mozilla
+
+#endif // gfx_src_gfxTelemetry_h__