Closed Bug 1417306 Opened 7 years ago Closed 7 years ago

Leak pipelines of Tabs

Categories

(Core :: Graphics: WebRender, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox57 --- unaffected
firefox59 --- fixed

People

(Reporter: sotaro, Assigned: sotaro)

References

Details

(Whiteboard: [wr-mvp])

Attachments

(1 file)

Bug 1342762 addressed pipeline leaks for video and canvas. But there is still a leak of Tabs. It should be easy to address.
Assignee: nobody → sotaro.ikeda.g
Whiteboard: [wr-mvp] [triage]
Blocks: 1342762
Attachment #8928384 - Flags: review?(nical.bugzilla)
Comment on attachment 8928384 [details] [diff] [review] patch - Fix leaking pipelines of Tabs Review of attachment 8928384 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/layers/wr/WebRenderBridgeParent.cpp @@ +1374,5 @@ > } > mAsyncCompositables.Clear(); > > mAsyncImageManager->RemovePipeline(mPipelineId, wr::NewEpoch(wrEpoch)); > + mApi->RemovePipeline(mPipelineId); nit: it would probably be safer to also clear mPipelineId (like set it to some recognizable and know to be wrong value like 0), just to make it apparent that something's wrong if we accidentally use it again after that.
Attachment #8928384 - Flags: review?(nical.bugzilla) → review+
Status: NEW → ASSIGNED
Priority: P2 → P1
Whiteboard: [wr-mvp] [triage] → [wr-mvp]
(In reply to Nicolas Silva [:nical] from comment #3) > Comment on attachment 8928384 [details] [diff] [review] > patch - Fix leaking pipelines of Tabs > > ::: gfx/layers/wr/WebRenderBridgeParent.cpp > @@ +1374,5 @@ > > } > > mAsyncCompositables.Clear(); > > > > mAsyncImageManager->RemovePipeline(mPipelineId, wr::NewEpoch(wrEpoch)); > > + mApi->RemovePipeline(mPipelineId); > > nit: it would probably be safer to also clear mPipelineId (like set it to > some recognizable and know to be wrong value like 0), just to make it > apparent that something's wrong if we accidentally use it again after that. mPipelineId is also used as LayersId. It seems better not to change it in this bug.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: