-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call WKDestroyRenderingResources() on iOS when tabs are backgrounded
https://bugs.webkit.org/show_bug.cgi?id=168261 rdar://problem/30481079 Reviewed by Tim Horton. Source/WebCore: Add CABackingStoreCollectBlocking() to QuartzCoreSPI.h, and fix files in WebCore that do a framework include. * platform/graphics/cocoa/TextTrackRepresentationCocoa.mm: * platform/graphics/cocoa/WebActionDisablingCALayerDelegate.h: * platform/spi/cocoa/QuartzCoreSPI.h: * platform/spi/mac/NSViewSPI.h: Source/WebKit2: There's code to call CABackingStoreCollectBlocking() on a 10s timer that exists for Mac, but on iOS the web processes are suspended before this timer fires. So call CABackingStoreCollectBlocking() from WebProcess::actualPrepareToSuspend(), which is where we also trigger the markAllLayersVolatile() code. Also add CABackingStoreCollectBlocking() to QuartzCoreSPI.h so we can use it without using WKSI. Release-log how long this takes, in case we get reports of bad performance. In my testing it could be up to 10ms. * WebProcess/WebProcess.cpp: (WebKit::WebProcess::actualPrepareToSuspend): * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::WebProcess::destroyRenderingResources): Canonical link: https://commits.webkit.org/185295@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@212260 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
8 changed files
with
60 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
2017-02-13 Simon Fraser <[email protected]> | ||
|
||
Call WKDestroyRenderingResources() on iOS when tabs are backgrounded | ||
https://bugs.webkit.org/show_bug.cgi?id=168261 | ||
rdar://problem/30481079 | ||
|
||
Reviewed by Tim Horton. | ||
|
||
Add CABackingStoreCollectBlocking() to QuartzCoreSPI.h, and fix files in WebCore | ||
that do a framework include. | ||
|
||
* platform/graphics/cocoa/TextTrackRepresentationCocoa.mm: | ||
* platform/graphics/cocoa/WebActionDisablingCALayerDelegate.h: | ||
* platform/spi/cocoa/QuartzCoreSPI.h: | ||
* platform/spi/mac/NSViewSPI.h: | ||
|
||
2017-02-13 Youenn Fablet <[email protected]> | ||
|
||
ASSERTION FAILED: !m_bodyLoader | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,25 @@ | ||
2017-02-13 Simon Fraser <[email protected]> | ||
|
||
Call WKDestroyRenderingResources() on iOS when tabs are backgrounded | ||
https://bugs.webkit.org/show_bug.cgi?id=168261 | ||
rdar://problem/30481079 | ||
|
||
Reviewed by Tim Horton. | ||
|
||
There's code to call CABackingStoreCollectBlocking() on a 10s timer that exists for Mac, but on iOS | ||
the web processes are suspended before this timer fires. So call CABackingStoreCollectBlocking() | ||
from WebProcess::actualPrepareToSuspend(), which is where we also trigger the markAllLayersVolatile() | ||
code. | ||
|
||
Also add CABackingStoreCollectBlocking() to QuartzCoreSPI.h so we can use it without using WKSI. | ||
|
||
Release-log how long this takes, in case we get reports of bad performance. In my testing it could be up to 10ms. | ||
|
||
* WebProcess/WebProcess.cpp: | ||
(WebKit::WebProcess::actualPrepareToSuspend): | ||
* WebProcess/cocoa/WebProcessCocoa.mm: | ||
(WebKit::WebProcess::destroyRenderingResources): | ||
|
||
2017-02-13 Brady Eidson <[email protected]> | ||
|
||
Followup to: Replace all WebKit Library Version checks in WK2 with SDK version checks. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters