Mark IOSurface backing for RemoteGraphicsContextGL's displayBuffer as owned by the WebProcess. This is so that Jetsam knows which process to terminate to reclaim memory.
Created attachment 417977 [details] Patch
Could we do it already today in GPU process instead, so that we don't need to do that later?
(In reply to Kimmo Kinnunen from comment #2) > Could we do it already today in GPU process instead, so that we don't need > to do that later? ahah, I wish :) Sadly it is currently not possible to do so from the GPUProcess without opening the sandbox too much. I have a meeting about this soon though. If and when we have an SPI that works from the GPUProcess (and with acceptable security ramifications), I will update our code accordingly. For now, doing it from the WebProcess is that best we can do and the approach we have taken in Bug 220663 as well.
Comment on attachment 417977 [details] Patch r=me
Committed r271673: <https://trac.webkit.org/changeset/271673> All reviewed patches have been landed. Closing bug and clearing flags on attachment 417977 [details].
<rdar://problem/73419639>
Reopening to attach new patch.
Created attachment 418058 [details] Patch