Closed Bug 1711462 Opened 3 years ago Closed 3 years ago

Evict texture cache items when deleting image keys

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: nical, Assigned: nical)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Once an image key is gone its textue cache entry can never be used again. The more eagerly we evict useless cache items the better for cache pressure and memory usage overall.

Making room in the texture cache as early as possible reduces the likelihood of allocating extra textures. It will also let us discard unused cached render tasks more aggressively in a folowup patch.

Pushed by nsilva@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7fe9e5e3e89e
Evict non-manual texture cache items when nothing holds on to them. r=gfx-reviewers,gw

Backed out for reftest failures on svg-paint-rect-changes.html along with Bug 1705024.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1705024#c3

Backout by ncsoregi@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/28c6110d23c9
Backed out 2 changesets (bug 1711462, bug 1705024) for failures on  svg-paint-rect-changes.html. CLOSED TREE
Pushed by nsilva@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8ed9d74e8c6f
Evict non-manual texture cache items when nothing holds on to them. r=gfx-reviewers,gw
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: