Backed out 2 changesets (bug 1899874) It is crashing the browser on windows and linux, Bug 1906687. CLOSED TREE

Backed out changeset cd0e7d18bbff (bug 1899874)
Backed out changeset 347c3fe4a18f (bug 1899874)
This commit is contained in:
Cristian Tuns
2024-07-09 17:48:05 -04:00
parent 94878f8c4f
commit eaf1eefde7
22 changed files with 37 additions and 127 deletions

View File

@@ -769,7 +769,6 @@ void ClientWebGLContext::GetContextAttributes(
result.mPreserveDrawingBuffer = options.preserveDrawingBuffer;
result.mFailIfMajorPerformanceCaveat = options.failIfMajorPerformanceCaveat;
result.mPowerPreference = options.powerPreference;
result.mForceSoftwareRendering = options.forceSoftwareRendering;
}
// -----------------------
@@ -1062,7 +1061,6 @@ ClientWebGLContext::SetContextOptions(JSContext* cx,
attributes.mFailIfMajorPerformanceCaveat;
newOpts.xrCompatible = attributes.mXrCompatible;
newOpts.powerPreference = attributes.mPowerPreference;
newOpts.forceSoftwareRendering = attributes.mForceSoftwareRendering;
newOpts.enableDebugRendererInfo =
StaticPrefs::webgl_enable_debug_renderer_info();
MOZ_ASSERT(mCanvasElement || mOffscreenCanvas);
@@ -2320,7 +2318,7 @@ void ClientWebGLContext::GetParameter(JSContext* cx, GLenum pname,
retval.set(JS::NumberValue(state.mPixelUnpackState.skipRows));
return;
} // switch pname
} // if webgl2
} // if webgl2
// -