[Webkit-unassigned] [Bug 215150] New: IOSurface not being recycled after ImageBuffer is destroyed
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 4 17:33:29 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=215150
Bug ID: 215150
Summary: IOSurface not being recycled after ImageBuffer is
destroyed
Product: WebKit
Version: Other
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: guowei_yang at apple.com
When investigating the code of another project, I realized that whenever we use an AcceleratedImageBuffer (IOSurface backend), the IOSurface was always destroyed with the destruction of ImageBuffer. However, I do believe it makes more sense to put the IOSurface back to surface pool once an ImageBuffer is destroyed. There is actually an existing function, IOSurface::moveToPool implemented, but never used in ImageBuffers. I propose an idea that, we move the IOSurface back to the surface pool in the destructor of ImageBufferIOSurfaceBackend. I am not sure if this change is sufficient, but the current code definitely didn't use IOSurface pool for recycling.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200805/7f421e64/attachment.htm>
More information about the webkit-unassigned
mailing list