Title: [270413] trunk/Source/WebKit
Revision
270413
Author
[email protected]
Date
2020-12-03 15:54:52 -0800 (Thu, 03 Dec 2020)

Log Message

Make sure the GPUConnectionToWebProcess gets destroyed when the connection to the WebProcess gets severed
https://bugs.webkit.org/show_bug.cgi?id=219508

Reviewed by Geoffrey Garen.

Make sure the GPUConnectionToWebProcess gets destroyed when the connection to the WebProcess gets severed
(WebProcess exited normally or crashed). This is similar to what we do in the NetworkProcess for
NetworkConnectionToWebProcess.

* GPUProcess/GPUConnectionToWebProcess.cpp:
(WebKit::GPUConnectionToWebProcess::didClose):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (270412 => 270413)


--- trunk/Source/WebKit/ChangeLog	2020-12-03 23:34:41 UTC (rev 270412)
+++ trunk/Source/WebKit/ChangeLog	2020-12-03 23:54:52 UTC (rev 270413)
@@ -1,3 +1,17 @@
+2020-12-03  Chris Dumez  <[email protected]>
+
+        Make sure the GPUConnectionToWebProcess gets destroyed when the connection to the WebProcess gets severed
+        https://bugs.webkit.org/show_bug.cgi?id=219508
+
+        Reviewed by Geoffrey Garen.
+
+        Make sure the GPUConnectionToWebProcess gets destroyed when the connection to the WebProcess gets severed
+        (WebProcess exited normally or crashed). This is similar to what we do in the NetworkProcess for
+        NetworkConnectionToWebProcess.
+
+        * GPUProcess/GPUConnectionToWebProcess.cpp:
+        (WebKit::GPUConnectionToWebProcess::didClose):
+
 2020-12-03  Tim Horton  <[email protected]>
 
         GPU Process: Sandbox violations under IOSurface::maximumSize in the Web Content process

Modified: trunk/Source/WebKit/GPUProcess/GPUConnectionToWebProcess.cpp (270412 => 270413)


--- trunk/Source/WebKit/GPUProcess/GPUConnectionToWebProcess.cpp	2020-12-03 23:34:41 UTC (rev 270412)
+++ trunk/Source/WebKit/GPUProcess/GPUConnectionToWebProcess.cpp	2020-12-03 23:54:52 UTC (rev 270413)
@@ -183,7 +183,7 @@
 #endif
 }
 
-void GPUConnectionToWebProcess::didClose(IPC::Connection&)
+void GPUConnectionToWebProcess::didClose(IPC::Connection& connection)
 {
 #if USE(AUDIO_SESSION)
     if (m_audioSessionProxy) {
@@ -191,6 +191,9 @@
         m_audioSessionProxy = nullptr;
     }
 #endif
+
+    gpuProcess().connectionToWebProcessClosed(connection);
+    gpuProcess().removeGPUConnectionToWebProcess(*this);
 }
 
 Logger& GPUConnectionToWebProcess::logger()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to