Closed Bug 1694744 Opened 3 years ago Closed 3 years ago

WebRender Sequence Capture doesn't get turned off in render backend

Categories

(Core :: Graphics: WebRender, defect, P4)

defect

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: jimb, Assigned: jimb)

Details

Attachments

(1 file)

The wr_api_stop_capture_sequence function is supposed to tell WebRender to stop logging data requested by a prior call to wr_api_start_capture_sequence, but the change is not propagated correctly to the render backend thread, which continues writing data to the capture directory. In fact, if sequence capture is enabled a second time, the render backend panics because the scene id number appears to have gone backwards.

The RenderBackend::capture_config field determines whether the render backend
logs ongoing activity as requested by wr_api_start_capture_sequence. This
field is set by SceneBuilderResult::CapturedTransactions messages, but there
is nothing that clears it. This patch adds an additional SceneBuilderResult
message to do so.

It would probably suffice to simply always clear capture_config upon receipt
of an ordinary Transactions message. But it seemed to me to be slighty nicer
to leave capture control to messages specific to that purpose, rather than
letting ordinary messages affect it implicitly.

Pushed by jblandy@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c6618664682a
Let the WebRender render backend know when sequence capture should stop. r=nical
Status: NEW → RESOLVED
Closed: 3 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: