Closed Bug 1694284 Opened 5 years ago Closed 5 years ago

Use moves to populate webrender::scene_builder_thread::BuiltTransaction

Categories

(Core :: Graphics: WebRender, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: jimb, Assigned: jimb)

Details

Attachments

(1 file)

There are a bunch of std::mem::replace calls in there which just aren't idiomatic.

Instead of calling std::mem::replace with dummy values to extract fields from
the TransactionMsg into the BuiltTransaction, it's more Rustic to pass the
former by value and just move its fields out.

SceneBuildingThread::process_transaction seems to contribute almost no self
time to profiles, so the cost of a move instead of passing a reference is
apparently negligible.

Assignee: nobody → jimb
Status: NEW → ASSIGNED
Pushed by jblandy@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c08db48bce8e Use moves to populate webrender::scene_builder_thread::BuiltTransaction r=gw
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: