Closed
Bug 1446166
Opened 7 years ago
Closed 7 years ago
Ensure that WebRenderUserData's are removed when the LayerManager is destroyed.
Categories
(Core :: Graphics: WebRender, enhancement)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
mozilla61
Tracking | Status | |
---|---|---|
firefox61 | --- | fixed |
People
(Reporter: jrmuizel, Assigned: jrmuizel)
References
Details
Attachments
(1 file)
This let's us avoid having to check whether we have the right one when getting them.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8959348 [details]
Bug 1446166. Ensure that WebRenderUserData's are removed when LayerManager is destroyed.
https://reviewboard.mozilla.org/r/228188/#review234016
::: commit-message-32f22:3
(Diff revision 2)
> +Bug 1446166. Ensure that WebRenderUserData's are removed when LayerManager is destroyed. r=kats
> +
> +This let's avoid having to check whether we have the right one when getting them.
s/let's/lets/
::: gfx/layers/wr/WebRenderCommandBuilder.cpp:34
(Diff revision 2)
> RemoveUnusedAndResetWebRenderUserData();
> + MOZ_RELEASE_ASSERT(mWebRenderUserDatas.Count() == 0);
I don't know if this is sufficient. There might be some WebRenderUserData instances that got used on the last display list build and so are marked "used" at the point of this call to RemoveUnusedAndResetWebRenderUserData().
I think it would be better to make this function take a bool argument that makes it ignore the used flag and just unconditionally delete all the things, and set that argument here (but not at the other call site).
Attachment #8959348 -
Flags: review?(bugmail)
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 6•7 years ago
|
||
mozreview-review |
Comment on attachment 8959348 [details]
Bug 1446166. Ensure that WebRenderUserData's are removed when LayerManager is destroyed.
https://reviewboard.mozilla.org/r/228188/#review234026
Thanks, that makes sense!
Attachment #8959348 -
Flags: review?(bugmail) → review+
Pushed by jmuizelaar@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e7171c0f021f
Ensure that WebRenderUserData's are removed when LayerManager is destroyed. r=kats
Comment 8•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Updated•7 years ago
|
Assignee: nobody → jmuizelaar
You need to log in
before you can comment on or make changes to this bug.
Description
•