Title: [292148] trunk/Source
Revision
292148
Author
[email protected]
Date
2022-03-31 02:46:58 -0700 (Thu, 31 Mar 2022)

Log Message

[GTK][WPE] Make ENABLE(GPU_PROCESS) code buildable
https://bugs.webkit.org/show_bug.cgi?id=238595

Reviewed by Adrian Perez de Castro.

Source/WebCore:

* platform/TextureMapper.cmake:
List the relevant headers under platform/graphics/gbm/ and append them
to WebCore_PRIVATE_FRAMEWORK_HEADERS so that the necessary relay headers
usable from WebKit are generated.

Source/WebKit:

* GPUProcess/GPUConnectionToWebProcess.cpp:
(WebKit::GPUConnectionToWebProcess::setCaptureAttributionString):
Adjust the setCaptureAttributionString() method definition for non-Cocoa
platforms.
* GPUProcess/webrtc/RemoteAudioMediaStreamTrackRendererInternalUnitManager.cpp:
* GPUProcess/webrtc/RemoteAudioMediaStreamTrackRendererInternalUnitManager.h:
* GPUProcess/webrtc/RemoteAudioMediaStreamTrackRendererInternalUnitManager.messages.in:
Guard the RemoteAudioMediaStreamTrackRendererInternalUnitManager class
with PLATFORM(COCOA) since all its uses are guarded the same way, and
the implementation unconditionally uses Cocoa-specific classes from
WebCore. The class can be refactored later if it ends up required for
any other platform.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (292147 => 292148)


--- trunk/Source/WebCore/ChangeLog	2022-03-31 08:42:32 UTC (rev 292147)
+++ trunk/Source/WebCore/ChangeLog	2022-03-31 09:46:58 UTC (rev 292148)
@@ -1,3 +1,15 @@
+2022-03-31  Zan Dobersek  <[email protected]>
+
+        [GTK][WPE] Make ENABLE(GPU_PROCESS) code buildable
+        https://bugs.webkit.org/show_bug.cgi?id=238595
+
+        Reviewed by Adrian Perez de Castro.
+
+        * platform/TextureMapper.cmake:
+        List the relevant headers under platform/graphics/gbm/ and append them
+        to WebCore_PRIVATE_FRAMEWORK_HEADERS so that the necessary relay headers
+        usable from WebKit are generated.
+
 2022-03-30  Andres Gonzalez  <[email protected]>
 
         Split streaming of AX trees from the class AXLogger.

Modified: trunk/Source/WebCore/platform/TextureMapper.cmake (292147 => 292148)


--- trunk/Source/WebCore/platform/TextureMapper.cmake	2022-03-31 08:42:32 UTC (rev 292147)
+++ trunk/Source/WebCore/platform/TextureMapper.cmake	2022-03-31 09:46:58 UTC (rev 292148)
@@ -150,3 +150,13 @@
         platform/graphics/texmap/TextureMapperSparseBackingStore.h
     )
 endif ()
+
+if (USE_LIBGBM)
+    list(APPEND WebCore_PRIVATE_FRAMEWORK_HEADERS
+        platform/graphics/gbm/DMABufFormat.h
+        platform/graphics/gbm/DMABufObject.h
+        platform/graphics/gbm/DMABufReleaseFlag.h
+        platform/graphics/gbm/GBMBufferSwapchain.h
+        platform/graphics/gbm/GBMDevice.h
+    )
+endif ()

Modified: trunk/Source/WebKit/ChangeLog (292147 => 292148)


--- trunk/Source/WebKit/ChangeLog	2022-03-31 08:42:32 UTC (rev 292147)
+++ trunk/Source/WebKit/ChangeLog	2022-03-31 09:46:58 UTC (rev 292148)
@@ -1,3 +1,23 @@
+2022-03-31  Zan Dobersek  <[email protected]>
+
+        [GTK][WPE] Make ENABLE(GPU_PROCESS) code buildable
+        https://bugs.webkit.org/show_bug.cgi?id=238595
+
+        Reviewed by Adrian Perez de Castro.
+
+        * GPUProcess/GPUConnectionToWebProcess.cpp:
+        (WebKit::GPUConnectionToWebProcess::setCaptureAttributionString):
+        Adjust the setCaptureAttributionString() method definition for non-Cocoa
+        platforms.
+        * GPUProcess/webrtc/RemoteAudioMediaStreamTrackRendererInternalUnitManager.cpp:
+        * GPUProcess/webrtc/RemoteAudioMediaStreamTrackRendererInternalUnitManager.h:
+        * GPUProcess/webrtc/RemoteAudioMediaStreamTrackRendererInternalUnitManager.messages.in:
+        Guard the RemoteAudioMediaStreamTrackRendererInternalUnitManager class
+        with PLATFORM(COCOA) since all its uses are guarded the same way, and
+        the implementation unconditionally uses Cocoa-specific classes from
+        WebCore. The class can be refactored later if it ends up required for
+        any other platform.
+
 2022-03-31  Per Arne Vollan  <[email protected]>
 
         Add runtime flag for blocking IOKit resources in the WebContent process' sandbox

Modified: trunk/Source/WebKit/GPUProcess/GPUConnectionToWebProcess.cpp (292147 => 292148)


--- trunk/Source/WebKit/GPUProcess/GPUConnectionToWebProcess.cpp	2022-03-31 08:42:32 UTC (rev 292147)
+++ trunk/Source/WebKit/GPUProcess/GPUConnectionToWebProcess.cpp	2022-03-31 09:46:58 UTC (rev 292148)
@@ -946,7 +946,7 @@
 #endif
 
 #if !PLATFORM(COCOA)
-bool GPUConnectionToWebProcess::setCaptureAttributionString() const
+bool GPUConnectionToWebProcess::setCaptureAttributionString()
 {
 }
 #endif

Modified: trunk/Source/WebKit/GPUProcess/webrtc/RemoteAudioMediaStreamTrackRendererInternalUnitManager.cpp (292147 => 292148)


--- trunk/Source/WebKit/GPUProcess/webrtc/RemoteAudioMediaStreamTrackRendererInternalUnitManager.cpp	2022-03-31 08:42:32 UTC (rev 292147)
+++ trunk/Source/WebKit/GPUProcess/webrtc/RemoteAudioMediaStreamTrackRendererInternalUnitManager.cpp	2022-03-31 09:46:58 UTC (rev 292148)
@@ -26,7 +26,7 @@
 #include "config.h"
 #include "RemoteAudioMediaStreamTrackRendererInternalUnitManager.h"
 
-#if ENABLE(GPU_PROCESS) && ENABLE(MEDIA_STREAM)
+#if ENABLE(GPU_PROCESS) && ENABLE(MEDIA_STREAM) && PLATFORM(COCOA)
 
 #include "GPUConnectionToWebProcess.h"
 #include "GPUProcess.h"
@@ -33,19 +33,16 @@
 #include "GPUProcessConnectionMessages.h"
 #include "IPCSemaphore.h"
 #include "Logging.h"
+#include "SharedRingBufferStorage.h"
 #include <WebCore/AudioMediaStreamTrackRendererInternalUnit.h>
 #include <WebCore/AudioSampleBufferList.h>
 #include <WebCore/AudioSession.h>
 #include <WebCore/AudioUtilities.h>
-#include <wtf/WeakPtr.h>
-
-#if PLATFORM(COCOA)
-#include "SharedRingBufferStorage.h"
 #include <WebCore/CAAudioStreamDescription.h>
 #include <WebCore/CARingBuffer.h>
 #include <WebCore/CoreAudioCaptureSource.h>
 #include <WebCore/WebAudioBufferList.h>
-#endif
+#include <wtf/WeakPtr.h>
 
 namespace WebKit {
 
@@ -82,9 +79,7 @@
     uint64_t m_generateOffset { 0 };
     uint64_t m_frameChunkSize { 0 };
     IPC::Semaphore m_renderSemaphore;
-#if PLATFORM(COCOA)
     std::unique_ptr<WebCore::CARingBuffer> m_ringBuffer;
-#endif
     bool m_isPlaying { false };
     WebCore::CAAudioStreamDescription m_description;
     bool m_shouldRegisterAsSpeakerSamplesProducer { false };
@@ -277,4 +272,4 @@
 
 } // namespace WebKit
 
-#endif // ENABLE(GPU_PROCESS) && ENABLE(MEDIA_STREAM)
+#endif // ENABLE(GPU_PROCESS) && ENABLE(MEDIA_STREAM) && PLATFORM(COCOA)

Modified: trunk/Source/WebKit/GPUProcess/webrtc/RemoteAudioMediaStreamTrackRendererInternalUnitManager.h (292147 => 292148)


--- trunk/Source/WebKit/GPUProcess/webrtc/RemoteAudioMediaStreamTrackRendererInternalUnitManager.h	2022-03-31 08:42:32 UTC (rev 292147)
+++ trunk/Source/WebKit/GPUProcess/webrtc/RemoteAudioMediaStreamTrackRendererInternalUnitManager.h	2022-03-31 09:46:58 UTC (rev 292148)
@@ -25,7 +25,7 @@
 
 #pragma once
 
-#if ENABLE(GPU_PROCESS) && ENABLE(MEDIA_STREAM)
+#if ENABLE(GPU_PROCESS) && ENABLE(MEDIA_STREAM) && PLATFORM(COCOA)
 
 #include "AudioMediaStreamTrackRendererInternalUnitIdentifier.h"
 #include "Connection.h"
@@ -33,16 +33,14 @@
 #include <wtf/CompletionHandler.h>
 #include <wtf/HashMap.h>
 
-#if PLATFORM(COCOA)
+namespace IPC {
+class Semaphore;
+}
+
 namespace WebCore {
 class CAAudioStreamDescription;
 }
-#endif
 
-namespace IPC {
-class Semaphore;
-}
-
 namespace WebKit {
 
 class GPUConnectionToWebProcess;
@@ -76,4 +74,4 @@
 
 } // namespace WebKit;
 
-#endif // ENABLE(GPU_PROCESS) && ENABLE(MEDIA_STREAM)
+#endif // ENABLE(GPU_PROCESS) && ENABLE(MEDIA_STREAM) && PLATFORM(COCOA)

Modified: trunk/Source/WebKit/GPUProcess/webrtc/RemoteAudioMediaStreamTrackRendererInternalUnitManager.messages.in (292147 => 292148)


--- trunk/Source/WebKit/GPUProcess/webrtc/RemoteAudioMediaStreamTrackRendererInternalUnitManager.messages.in	2022-03-31 08:42:32 UTC (rev 292147)
+++ trunk/Source/WebKit/GPUProcess/webrtc/RemoteAudioMediaStreamTrackRendererInternalUnitManager.messages.in	2022-03-31 09:46:58 UTC (rev 292148)
@@ -21,7 +21,7 @@
 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
 # THE POSSIBILITY OF SUCH DAMAGE.
 
-#if ENABLE(GPU_PROCESS) && ENABLE(MEDIA_STREAM)
+#if ENABLE(GPU_PROCESS) && ENABLE(MEDIA_STREAM) && PLATFORM(COCOA)
 
 messages -> RemoteAudioMediaStreamTrackRendererInternalUnitManager NotRefCounted {
     CreateUnit(WebKit::AudioMediaStreamTrackRendererInternalUnitIdentifier identifier) -> (WebCore::CAAudioStreamDescription description, size_t frameChunkSize)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to