Closed Bug 1690244 Opened 4 years ago Closed 3 years ago

Move WebRender initialization code out of renderer.rs

Categories

(Core :: Graphics: WebRender, task)

task

Tracking

()

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: nical, Assigned: nical)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

There's too much going on in renderer.rs, Setting up scene builder threads and the liks should not be part of it.

There is a lot going on in renderer.rs, the initialization code takes a non-negligible chunk of it and touches all aspects of WebRender including setting up all of the threads. This patch moves it into its own init module.
In addition, RendererOptions is renamed into WebRenderOptions to better reflect that it configures every aspect of the engine, and init::create_webrender_instance replaces Renderer::new.

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:nical, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(nical.bugzilla)
Flags: needinfo?(dmalyshau)

Will do eventually, no rush since it's a cleanup patch.

Flags: needinfo?(nical.bugzilla)
Flags: needinfo?(dmalyshau)

We should probably just close this, since (I assume) there's no way to rebase this patch given how old it is?

Flags: needinfo?(nical.bugzilla)
Attachment #9200639 - Attachment description: Bug 1690244 - Move WebRender initialization code out of renderer.rs. r=kvark → Bug 1690244 - Move WebRender initialization code out of renderer.rs. r=#gfx-reviewers

I had forgotten about it. I ended up redoing it as it was a pretty mechanical change.

Flags: needinfo?(nical.bugzilla)
Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6237668e5fca Move WebRender initialization code out of renderer.rs. r=kvark
Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/80344433c723 Move WebRender initialization code out of renderer.rs. r=kvark
Flags: needinfo?(nical.bugzilla)
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: