[webkit-changes] [WebKit/WebKit] 6bdf7d: [WebGPU] RemoteGPU instances accumulate during pag...

mwyrzykowski noreply at github.com
Mon Mar 20 08:25:04 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6bdf7d09baaee722ed3217506bcc77a65d5dda84
      https://github.com/WebKit/WebKit/commit/6bdf7d09baaee722ed3217506bcc77a65d5dda84
  Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
  Date:   2023-03-20 (Mon, 20 Mar 2023)

  Changed paths:
    M Source/WebKit/GPUProcess/GPUConnectionToWebProcess.cpp
    M Source/WebKit/GPUProcess/GPUConnectionToWebProcess.h
    M Source/WebKit/GPUProcess/GPUConnectionToWebProcess.messages.in
    M Source/WebKit/GPUProcess/graphics/WebGPU/RemoteGPU.cpp
    M Source/WebKit/GPUProcess/graphics/WebGPU/RemoteGPU.h
    M Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteGPUProxy.cpp
    M Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteGPUProxy.h

  Log Message:
  -----------
  [WebGPU] RemoteGPU instances accumulate during page reload / navigation
https://bugs.webkit.org/show_bug.cgi?id=253971
<radar://106760497>

Reviewed by Kimmo Kinnunen.

As a first step prior to https://bugs.webkit.org/show_bug.cgi?id=250865
make sure RemoteGPU instance gets destroyed in the GPU process when
the RemoteGPUProxy instance in the web process is destroyed.

Patch from Kimmo Kinnunen.

* Source/WebKit/GPUProcess/GPUConnectionToWebProcess.cpp:
(WebKit::GPUConnectionToWebProcess::releaseRemoteGPU):
* Source/WebKit/GPUProcess/GPUConnectionToWebProcess.h:
* Source/WebKit/GPUProcess/GPUConnectionToWebProcess.messages.in:
Add message to remove the RemoteGPU instance.

* Source/WebKit/GPUProcess/graphics/WebGPU/RemoteGPU.cpp:
(WebKit::RemoteGPU::initialize):
(WebKit::RemoteGPU::stopListeningForIPC):
(WebKit::RemoteGPU::workQueueInitialize):
(WebKit::RemoteGPU::workQueueUninitialize):
* Source/WebKit/GPUProcess/graphics/WebGPU/RemoteGPU.h:
* Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteGPUProxy.cpp:
(WebKit::RemoteGPUProxy::disconnectGpuProcessIfNeeded):

Canonical link: https://commits.webkit.org/261871@main




More information about the webkit-changes mailing list