Closed Bug 1581058 Opened 6 years ago Closed 6 years ago

Another round of WebRender cleanups and documentation

Categories

(Core :: Graphics: WebRender, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: nical, Assigned: nical)

Details

Attachments

(4 files)

No description provided.

NI-ing Kvark here too because I know he has been interested in something along these lines, so maybe a potential to collaborate?

Flags: needinfo?(dmalyshau)

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).

This will let us rename DisplayListFlattener appropriately in the next commit.

This way render_task.rs (a pretty large file still) is only about describing the specific render task types.

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 ;)

Flags: needinfo?(dmalyshau)
Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/362feebe585e Move RenderTaskCache into its own module. r=gw https://hg.mozilla.org/integration/autoland/rev/7a826f08cb7f Rename scene_builder::SceneBuilder into scene_builder_thread::SceneBuilderThread. r=gw https://hg.mozilla.org/integration/autoland/rev/5266eb5527a7 Rename a lot of scene building related structures. r=gw https://hg.mozilla.org/integration/autoland/rev/37598891cea6 Remove remaining use of the term "flattening". r=gw
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: