Another round of WebRender cleanups and documentation
Categories
(Core :: Graphics: WebRender, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox71 | --- | fixed |
People
(Reporter: nical, Assigned: nical)
Details
Attachments
(4 files)
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
Bug 1581058 - Rename scene_builder::SceneBuilder into scene_builder_thread::SceneBuilderThread. r=gw
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review |
Comment 1•6 years ago
|
||
NI-ing Kvark here too because I know he has been interested in something along these lines, so maybe a potential to collaborate?
| Assignee | ||
Comment 2•6 years ago
|
||
We have been using the term "scene building" to talk about what's happening in display_list_flattener.rs. In practice, this operation takes a pretty flat serialized display list and produces a tree of pictures among other things, so "flattening" doesn't describe what's going on very well.
To address this, this commit renames a number of things:
- display_list_flattener.rs -> scene_buiding.rs
- DisplayListFlattener -> DisplayListBuilder
- DocumentStats -> SceneStats (moved in scene.rs)
FrameBuilder is split int two structures: BuiltScene and FrameBuilder. The former is created by the SceneBuilder on the scene builder thread and its sole purpose is to be WebRender's internal represnetation of scene. The latter exists only on the render backend thread and generates frames (accessing the scene if necessary).
In addition, the frame builder and built scene are not stored in an Option anymore on the render backend (this is the only change that goes beyond moving or renaming something).
| Assignee | ||
Comment 3•6 years ago
|
||
This will let us rename DisplayListFlattener appropriately in the next commit.
| Assignee | ||
Comment 4•6 years ago
|
||
This way render_task.rs (a pretty large file still) is only about describing the specific render task types.
Comment 5•6 years ago
|
||
Thanks for bringing me in!
Hard to discuss the bug itself due to "No description provided.", but the changes attached look like a good improvement in the clarity of our modules and types. Let me know if I can help reviewing them ;)
| Assignee | ||
Comment 6•6 years ago
|
||
Comment 8•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/362feebe585e
https://hg.mozilla.org/mozilla-central/rev/7a826f08cb7f
https://hg.mozilla.org/mozilla-central/rev/5266eb5527a7
https://hg.mozilla.org/mozilla-central/rev/37598891cea6
Description
•