[Webkit-unassigned] [Bug 221662] WKWebView's -takeSnapshotWithConfiguration:completionHandler: can't capture GPU rendering features

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Feb 13 16:19:25 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=221662

--- Comment #1 from Tim Horton <thorton at apple.com> ---
Unfortunately since CGWindowListCreateImage and friends are the primary way to do this on macOS, and WebKit doesn’t know the rest of the contents of the window, this is not easy to fix (at least, not without sometimes getting random non-WebKit content in the snapshot).

WebKit gets around this on iOS by using CARenderServer mechanisms to snapshot a subtree of layers.

For now you’re likely best off with your hand rolled snapshotting solution (since you can guarantee nothing overlaps the web view in the snapshot), but do know that we are aware of this limitation.

-- 
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/20210214/6c1d166c/attachment.htm>


More information about the webkit-unassigned mailing list