Backed out changeset 79cca1493923 (bug 1341913) for causing frequent failures at test_ext_contentscript_data_url.html. CLOSED TREE

This commit is contained in:
Cristina Horotan
2025-04-17 05:09:47 +03:00
parent 890acd4fec
commit b6161c18c7

View File

@@ -1800,7 +1800,6 @@ pub struct WrShaders {
shaders: SharedShaders,
shaders_to_precache: PendingShadersToPrecache,
device: Device,
gl: Rc<dyn gl::Gl>,
}
pub struct WrGlyphRasterThread(GlyphRasterThread);
@@ -1884,9 +1883,6 @@ pub extern "C" fn wr_window_new(
let ctx = swgl::Context::from(swgl_context);
ctx.make_current();
(Rc::new(ctx) as Rc<dyn gl::Gl>, Some(ctx))
} else if let Some(shaders) = &shaders {
let gl = Rc::clone(&shaders.gl);
(gl, None)
} else {
let gl = unsafe {
if gl_context.is_null() {
@@ -4462,13 +4458,11 @@ pub extern "C" fn wr_shaders_new(
};
let shaders_to_precache = shaders.precache_all(precache_flags);
let gl = Rc::clone(device.rc_gl());
let shaders = WrShaders {
shaders: Rc::new(RefCell::new(shaders)),
shaders_to_precache,
device,
gl,
};
Box::into_raw(Box::new(shaders))