Closed Bug 1784051 Opened 4 years ago Closed 3 years ago

SwCompositor retains shared depth texture for backgrounded tabs on Android

Categories

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

Unspecified
Android
enhancement

Tracking

()

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: jnicol, Assigned: jnicol)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The SwCompositor shares a single depth texture for use when rendering to each of its tiles. Each of these may only be a few megabytes of memory. However, on Android each tab has its own compositor, meaning this quickly adds up. We should ensure we deallocate the depth texture when the tab is backgrounded. (perhaps when the last tile/surface is deallocated, once we fix bug 1784049)

Summary: SwCompositor retains depth texture for background tabs on Android → SwCompositor retains shared depth texture for backgrounded tabs on Android
Severity: -- → S4
Type: defect → task
Priority: -- → P3
Type: task → enhancement

And lazily create it when first surface is created. This prevents us
unnecessarily holding on to that memory when a compositor has no
surfaces, ie when the tab is backgrounded on Android. While each depth
texture may only be a few megabytes, this quickly adds up on Android
where each tab has its own compositor.

Depends on D154635

Assignee: nobody → jnicol
Status: NEW → ASSIGNED
Pushed by jnicol@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/20e3e274cc27 Delete SwCompositor's shared depth texture when final surface is destroyed. r=lsalzman

Backed out for causing mochitest failures with crash:core::panicking::panic_str

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: PROCESS-CRASH | devtools/client/inspector/rules/test/browser_rules_cubicbezier-commit-on-ENTER.js | application crashed [@ core::panicking::panic_str]

And also: https://treeherder.mozilla.org/logviewer?job_id=387476737&repo=autoland

Flags: needinfo?(jnicol)
Pushed by jnicol@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/75dfb2eca175 Delete SwCompositor's shared depth texture when final surface is destroyed. r=lsalzman
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
Flags: needinfo?(jnicol)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: