Bug 145547

Summary: [iOS][WK2] Always mark layers as volatile for background pages
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Layout and RenderingAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, commit-queue, kling, koivisto, simon.fraser, thorton
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Chris Dumez 2015-06-01 21:28:36 PDT
We currently mark layers as volatile when the WebProcess is about to be suspended. Most of the time the WebProcess gets suspended when a page goes into the background. However, it is not always the case (see radar), in which case the layers won't be marked as volatile and waste memory even though they are not visible.

We need to mark layers as volatile as soon as the page goes into the background, instead of relying on the WebProcess suspension mechanism.

Radar: <rdar://problem/20663184>
Comment 1 Chris Dumez 2015-06-01 21:55:02 PDT
Created attachment 254050 [details]
Patch
Comment 2 WebKit Commit Bot 2015-06-02 14:30:51 PDT
Comment on attachment 254050 [details]
Patch

Clearing flags on attachment: 254050

Committed r185123: <http://trac.webkit.org/changeset/185123>
Comment 3 WebKit Commit Bot 2015-06-02 14:30:59 PDT
All reviewed patches have been landed.  Closing bug.