Closed Bug 946541 Opened 11 years ago Closed 11 years ago

Skia doesn't purge GPU resources properly

Categories

(Core :: Graphics, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28
blocking-b2g koi+
Tracking Status
firefox26 --- wontfix
firefox27 --- wontfix
firefox28 --- fixed
b2g-v1.2 --- fixed

People

(Reporter: gal, Assigned: gal)

Details

Attachments

(1 file, 1 obsolete file)

No description provided.
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → gal
Attachment #8342780 - Flags: review?(matt.woodrow)
Attachment #8342780 - Attachment is obsolete: true
Attachment #8342780 - Flags: review?(matt.woodrow)
Attachment #8342790 - Flags: review?(gwright)
Attachment #8342790 - Flags: review?(snorp)
Attachment #8342790 - Flags: review?(gwright) → review+
Attachment #8342790 - Flags: review?(snorp)
Keywords: checkin-needed
This probably blocks any FFOS release that uses skiaGL.
blocking-b2g: --- → koi?
blocking-b2g: koi? → koi+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Do we know how much of an improvement this is? This patch is certainly correct, but I would've thought that textures are the overwhelming majority of stuff that would be freed here...
I didn't do any representative measurements. All I can say is that this patch makes things visibly better. Also, I can confirm that its definitely not enough. Skia is still hanging on to a bunch of gray matter.
(In reply to Andreas Gal :gal from comment #8) > I didn't do any representative measurements. All I can say is that this > patch makes things visibly better. Also, I can confirm that its definitely > not enough. Skia is still hanging on to a bunch of gray matter. SkiaGL is definitely going to take more memory than software. The GLContext (and underlying EGL context) and triple-buffered SurfaceStream alone could account for a few megs. Do we have any idea how much we need to get rid of before things will work? Maybe instead of purging the GL resources on memory pressure we should just demote it to software. Performance is going to suck anyway if we're constantly dumping the texture cache.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: