Bug 254013 - keep decoded image data for background tabs in volatile memory
Summary: keep decoded image data for background tabs in volatile memory
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Process Model (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Cameron McCormack (:heycam)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-15 23:53 PDT by Cameron McCormack (:heycam)
Modified: 2023-05-29 19:40 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cameron McCormack (:heycam) 2023-03-15 23:53:39 PDT
Currently with full GPU process enabled, any images we draw will result in ShareableBitmaps that are held on to by the Web process until their owning NativeImage is destroyed.  This decoded image data is often not needed when a tab has gone into the background.  Let's try moving the decoded data into volatile memory once tabs go into the background, to reduce our footprint.
Comment 1 Radar WebKit Bug Importer 2023-03-15 23:53:55 PDT
<rdar://problem/106794310>
Comment 2 Cameron McCormack (:heycam) 2023-03-15 23:59:49 PDT
https://github.com/WebKit/WebKit/pull/11597
Comment 3 Cameron McCormack (:heycam) 2023-05-29 19:40:36 PDT
Preferred the approach in bug 254768.