[webkit-changes] [WebKit/WebKit] caf77f: Make sure RemoteLayerTreeDrawingArea::updateRender...
mattwoodrow
noreply at github.com
Tue Sep 6 15:23:53 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: caf77f485fe2067d0e52dd73f5c12c93be047997
https://github.com/WebKit/WebKit/commit/caf77f485fe2067d0e52dd73f5c12c93be047997
Author: Matt Woodrow <mattwoodrow at apple.com>
Date: 2022-09-06 (Tue, 06 Sep 2022)
Changed paths:
M Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeDrawingArea.mm
Log Message:
-----------
Make sure RemoteLayerTreeDrawingArea::updateRendering calls didPaintLayers when we have flushing work to do.
https://bugs.webkit.org/show_bug.cgi?id=244522
<rdar://98521353>
Reviewed by Simon Fraser.
didPaintLayers is used to notify the remote rendering backend of transaction that include painting work,
and triggers eviction of resources that haven't been recently used (like fonts).
Without this we retain font resources much longer than intended and necessary.
Fixed by reading the size of the flushers vector before we WTFMove them into BackingStoreFlusher::create.
* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeDrawingArea.mm:
(WebKit::RemoteLayerTreeDrawingArea::updateRendering):
Canonical link: https://commits.webkit.org/254201@main
More information about the webkit-changes
mailing list