зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1696937 [Linux] Remove wayland/drm info from about:support, r=jhorak
We can't get meaningful drm info at about:config as the info gathered too early and GfxPlatformGtk() is not initialized yet. Differential Revision: https://phabricator.services.mozilla.com/D107502
This commit is contained in:
Родитель
e2fa1effe1
Коммит
dca8b9611f
|
@ -548,11 +548,6 @@ IsWayland:
|
|||
If true then the Wayland windowing system was in use.
|
||||
type: boolean
|
||||
|
||||
IsWaylandDRM:
|
||||
description: >
|
||||
If true then the Wayland DRM backend was in use.
|
||||
type: boolean
|
||||
|
||||
IsWebRenderResourcePathOverridden:
|
||||
description: >
|
||||
If true then the WebRender resources (i.e. shaders) are loaded from a user specified path.
|
||||
|
|
|
@ -52,7 +52,6 @@ nsresult GfxInfo::Init() {
|
|||
mIsMesa = false;
|
||||
mIsAccelerated = true;
|
||||
mIsWayland = false;
|
||||
mIsWaylandDRM = false;
|
||||
mIsXWayland = false;
|
||||
mHasMultipleGPUs = false;
|
||||
mGlxTestError = false;
|
||||
|
@ -70,8 +69,6 @@ void GfxInfo::AddCrashReportAnnotations() {
|
|||
CrashReporter::Annotation::AdapterDriverVersion, mDriverVersion);
|
||||
CrashReporter::AnnotateCrashReport(CrashReporter::Annotation::IsWayland,
|
||||
mIsWayland);
|
||||
CrashReporter::AnnotateCrashReport(CrashReporter::Annotation::IsWaylandDRM,
|
||||
mIsWaylandDRM);
|
||||
CrashReporter::AnnotateCrashReport(
|
||||
CrashReporter::Annotation::DesktopEnvironment, mDesktopEnvironment);
|
||||
|
||||
|
@ -464,11 +461,6 @@ void GfxInfo::GetData() {
|
|||
#ifdef MOZ_WAYLAND
|
||||
mIsWayland = gdk_display_get_default() &&
|
||||
!GDK_IS_X11_DISPLAY(gdk_display_get_default());
|
||||
if (mIsWayland) {
|
||||
mIsWaylandDRM = GetDMABufDevice()->IsDMABufVAAPIEnabled() ||
|
||||
GetDMABufDevice()->IsDMABufWebGLEnabled() ||
|
||||
GetDMABufDevice()->IsDMABufTexturesEnabled();
|
||||
}
|
||||
#endif
|
||||
|
||||
// Make a best effort guess at whether or not we are using the XWayland compat
|
||||
|
@ -991,13 +983,7 @@ NS_IMETHODIMP
|
|||
GfxInfo::GetWindowProtocol(nsAString& aWindowProtocol) {
|
||||
GetData();
|
||||
if (mIsWayland) {
|
||||
if (mIsWaylandDRM) {
|
||||
aWindowProtocol =
|
||||
GfxDriverInfo::GetWindowProtocol(WindowProtocol::WaylandDRM);
|
||||
} else {
|
||||
aWindowProtocol =
|
||||
GfxDriverInfo::GetWindowProtocol(WindowProtocol::Wayland);
|
||||
}
|
||||
aWindowProtocol = GfxDriverInfo::GetWindowProtocol(WindowProtocol::Wayland);
|
||||
} else if (mIsXWayland) {
|
||||
aWindowProtocol =
|
||||
GfxDriverInfo::GetWindowProtocol(WindowProtocol::XWayland);
|
||||
|
|
|
@ -109,7 +109,6 @@ class GfxInfo final : public GfxInfoBase {
|
|||
bool mIsMesa;
|
||||
bool mIsAccelerated;
|
||||
bool mIsWayland;
|
||||
bool mIsWaylandDRM;
|
||||
bool mIsXWayland;
|
||||
bool mHasMultipleGPUs;
|
||||
bool mGlxTestError;
|
||||
|
|
Загрузка…
Ссылка в новой задаче