Title: [291153] trunk/Source/WebCore
Revision
291153
Author
commit-qu...@webkit.org
Date
2022-03-11 03:17:29 -0800 (Fri, 11 Mar 2022)

Log Message

Unreviewed isInGPUProcess() fix after 248209@main
https://bugs.webkit.org/show_bug.cgi?id=237762

Patch by Zan Dobersek <zdober...@igalia.com> on 2022-03-11

* platform/RuntimeApplicationChecks.h:
(WebCore::isInGPUProcess): Define isInGPUProcess() in all cases but
return false if ENABLE_GPU_PROCESS is disabled.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (291152 => 291153)


--- trunk/Source/WebCore/ChangeLog	2022-03-11 10:36:36 UTC (rev 291152)
+++ trunk/Source/WebCore/ChangeLog	2022-03-11 11:17:29 UTC (rev 291153)
@@ -1,3 +1,12 @@
+2022-03-11  Zan Dobersek  <zdober...@igalia.com>
+
+        Unreviewed isInGPUProcess() fix after 248209@main
+        https://bugs.webkit.org/show_bug.cgi?id=237762
+
+        * platform/RuntimeApplicationChecks.h:
+        (WebCore::isInGPUProcess): Define isInGPUProcess() in all cases but
+        return false if ENABLE_GPU_PROCESS is disabled.
+
 2022-03-11  Antoine Quint  <grao...@webkit.org>
 
         [web-animations] refactor discrete SVG properties to use a dedicated animation wrapper

Modified: trunk/Source/WebCore/platform/RuntimeApplicationChecks.h (291152 => 291153)


--- trunk/Source/WebCore/platform/RuntimeApplicationChecks.h	2022-03-11 10:36:36 UTC (rev 291152)
+++ trunk/Source/WebCore/platform/RuntimeApplicationChecks.h	2022-03-11 11:17:29 UTC (rev 291153)
@@ -54,9 +54,14 @@
 bool isInAuxiliaryProcess();
 inline bool isInWebProcess() { return checkAuxiliaryProcessType(AuxiliaryProcessType::WebContent); }
 inline bool isInNetworkProcess() { return checkAuxiliaryProcessType(AuxiliaryProcessType::Network); }
+inline bool isInGPUProcess()
+{
 #if ENABLE(GPU_PROCESS)
-inline bool isInGPUProcess() { return checkAuxiliaryProcessType(AuxiliaryProcessType::GPU); }
+    return checkAuxiliaryProcessType(AuxiliaryProcessType::GPU);
+#else
+    return false;
 #endif
+}
 
 #if PLATFORM(COCOA)
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to