Diff
Modified: trunk/Source/WebKit/ChangeLog (275552 => 275553)
--- trunk/Source/WebKit/ChangeLog 2021-04-06 21:14:43 UTC (rev 275552)
+++ trunk/Source/WebKit/ChangeLog 2021-04-06 21:27:06 UTC (rev 275553)
@@ -1,3 +1,52 @@
+2021-04-06 Fujii Hironori <[email protected]>
+
+ Add IPC::Semaphore stub for Unix ports
+ https://bugs.webkit.org/show_bug.cgi?id=224223
+
+ Reviewed by Don Olmstead.
+
+ PlayStation, GTK and WPE ports don't use it yet. Just add stubs
+ instead of scattering #if everywhere using Semaphore.
+
+ * GPUProcess/graphics/RemoteRenderingBackend.cpp:
+ (WebKit::RemoteRenderingBackend::nextDestinationImageBufferAfterApplyingDisplayLists):
+ (WebKit::RemoteRenderingBackend::populateGetImageDataSharedMemory):
+ * Platform/IPC/StreamClientConnection.cpp:
+ (IPC::StreamClientConnection::setWakeUpSemaphore):
+ (IPC::StreamClientConnection::wakeUpServer):
+ * Platform/IPC/StreamClientConnection.h:
+ (IPC::StreamClientConnection::tryAcquire):
+ (IPC::StreamClientConnection::tryAcquireAll):
+ * Platform/IPC/StreamConnectionWorkQueue.cpp:
+ (IPC::StreamConnectionWorkQueue::StreamConnectionWorkQueue):
+ (IPC::StreamConnectionWorkQueue::removeStreamConnection):
+ (IPC::StreamConnectionWorkQueue::stop):
+ (IPC::StreamConnectionWorkQueue::wakeUp):
+ (IPC::StreamConnectionWorkQueue::wakeUpProcessingThread):
+ * Platform/IPC/StreamConnectionWorkQueue.h:
+ * Platform/IPC/StreamServerConnection.cpp:
+ (IPC::StreamServerConnectionBase::release):
+ (IPC::StreamServerConnectionBase::releaseAll):
+ * Platform/IPC/unix/IPCSemaphoreUnix.cpp: Added.
+ (IPC::Semaphore::Semaphore):
+ (IPC::Semaphore::signal):
+ (IPC::Semaphore::wait):
+ (IPC::Semaphore::waitFor):
+ (IPC::Semaphore::encode const):
+ (IPC::Semaphore::decode):
+ (IPC::Semaphore::destroy):
+ * PlatformPlayStation.cmake:
+ * Sources.txt:
+ * SourcesGTK.txt:
+ * SourcesWPE.txt:
+ * WebKit.xcodeproj/project.pbxproj:
+ * WebProcess/GPU/graphics/RemoteRenderingBackendProxy.cpp:
+ (WebKit::RemoteRenderingBackendProxy::waitForGetImageDataToComplete):
+ (WebKit::RemoteRenderingBackendProxy::didAppendData):
+ * WebProcess/GPU/media/RemoteAudioDestinationProxy.cpp:
+ (WebKit::RemoteAudioDestinationProxy::startRenderingThread):
+ (WebKit::RemoteAudioDestinationProxy::stopRenderingThread):
+
2021-04-06 Ryosuke Niwa <[email protected]>
Delay the end of printing while PrintContext is in use.
Modified: trunk/Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.cpp (275552 => 275553)
--- trunk/Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.cpp 2021-04-06 21:14:43 UTC (rev 275552)
+++ trunk/Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.cpp 2021-04-06 21:27:06 UTC (rev 275553)
@@ -247,11 +247,7 @@
break;
handle.startWaiting();
-#if PLATFORM(COCOA)
m_resumeDisplayListSemaphore.waitFor(30_us);
-#else
- sleep(30_us);
-#endif
auto resumeReadingInfo = handle.stopWaiting();
if (!resumeReadingInfo)
@@ -376,9 +372,7 @@
} else
memset(m_getImageDataSharedMemory->data(), 0, m_getImageDataSharedMemory->size());
-#if OS(DARWIN)
m_getImageDataSemaphore.signal();
-#endif
}
void RemoteRenderingBackend::getDataURLForImageBuffer(const String& mimeType, Optional<double> quality, WebCore::PreserveResolution preserveResolution, WebCore::RenderingResourceIdentifier renderingResourceIdentifier, CompletionHandler<void(String&&)>&& completionHandler)
Deleted: trunk/Source/WebKit/Platform/IPC/IPCSemaphore.cpp (275552 => 275553)
--- trunk/Source/WebKit/Platform/IPC/IPCSemaphore.cpp 2021-04-06 21:14:43 UTC (rev 275552)
+++ trunk/Source/WebKit/Platform/IPC/IPCSemaphore.cpp 2021-04-06 21:27:06 UTC (rev 275553)
@@ -1,50 +0,0 @@
-/*
- * Copyright (C) 2021 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "IPCSemaphore.h"
-
-#if !OS(DARWIN) && !OS(WINDOWS)
-
-namespace IPC {
-
-Semaphore::Semaphore() = default;
-
-Semaphore::Semaphore(Semaphore&&) = default;
-
-Semaphore::~Semaphore() = default;
-
-Semaphore& Semaphore::operator=(Semaphore&&) = default;
-
-void Semaphore::encode(Encoder&) const { }
-
-Optional<Semaphore> Semaphore::decode(Decoder&)
-{
- return Semaphore { };
-}
-
-}
-
-#endif
Modified: trunk/Source/WebKit/Platform/IPC/StreamClientConnection.cpp (275552 => 275553)
--- trunk/Source/WebKit/Platform/IPC/StreamClientConnection.cpp 2021-04-06 21:14:43 UTC (rev 275552)
+++ trunk/Source/WebKit/Platform/IPC/StreamClientConnection.cpp 2021-04-06 21:27:06 UTC (rev 275553)
@@ -40,18 +40,14 @@
void StreamClientConnection::setWakeUpSemaphore(IPC::Semaphore&& semaphore)
{
-#if PLATFORM(COCOA) || PLATFORM(WIN)
m_wakeUpSemaphore = WTFMove(semaphore);
-#endif
wakeUpServer();
}
void StreamClientConnection::wakeUpServer()
{
-#if PLATFORM(COCOA) || PLATFORM(WIN)
if (m_wakeUpSemaphore)
m_wakeUpSemaphore->signal();
-#endif
}
}
Modified: trunk/Source/WebKit/Platform/IPC/StreamClientConnection.h (275552 => 275553)
--- trunk/Source/WebKit/Platform/IPC/StreamClientConnection.h 2021-04-06 21:14:43 UTC (rev 275552)
+++ trunk/Source/WebKit/Platform/IPC/StreamClientConnection.h 2021-04-06 21:27:06 UTC (rev 275553)
@@ -102,9 +102,7 @@
size_t m_clientOffset { 0 };
StreamConnectionBuffer m_buffer;
-#if PLATFORM(COCOA) || PLATFORM(WIN)
Optional<Semaphore> m_wakeUpSemaphore;
-#endif
};
template<typename T, typename U>
@@ -240,7 +238,6 @@
}
if (timeout.didTimeOut())
break;
-#if PLATFORM(COCOA) || PLATFORM(WIN)
ClientLimit oldClientLimit = sharedClientLimit().compareExchangeStrong(clientLimit, ClientLimit::clientIsWaitingTag, std::memory_order_acq_rel, std::memory_order_acq_rel);
if (clientLimit == oldClientLimit) {
m_buffer.clientWaitSemaphore().waitFor(timeout);
@@ -247,10 +244,6 @@
clientLimit = sharedClientLimit().load(std::memory_order_acquire);
} else
clientLimit = oldClientLimit;
-#else
- Thread::yield();
- clientLimit = sharedClientLimit().load(std::memory_order_acquire);
-#endif
// The alignedSpan uses the minimumMessageSize to calculate the next beginning position in the buffer,
// and not the size. The size might be more or less what is needed, depending on where the reader is.
// If there is no capacity for minimum message size, wait until more is available.
@@ -273,28 +266,17 @@
// If the transaction commits, server is guaranteed to signal.
for (;;) {
-#if PLATFORM(COCOA) || PLATFORM(WIN)
ClientLimit clientLimit = sharedClientLimit().exchange(ClientLimit::clientIsWaitingTag, std::memory_order_acq_rel);
ClientOffset clientOffset = sharedClientOffset().load(std::memory_order_acquire);
-#else
- ClientLimit clientLimit = sharedClientLimit().load(std::memory_order_acquire);
- ClientOffset clientOffset = sharedClientOffset().load(std::memory_order_acquire);
-#endif
if (!clientLimit && (clientOffset == ClientOffset::serverIsSleepingTag || !clientOffset))
break;
-#if PLATFORM(COCOA) || PLATFORM(WIN)
m_buffer.clientWaitSemaphore().waitFor(timeout);
-#else
- Thread::yield();
-#endif
if (timeout.didTimeOut())
return WTF::nullopt;
}
-#if PLATFORM(COCOA) || PLATFORM(WIN)
// In case the transaction was cancelled, undo the transaction marker.
sharedClientLimit().store(static_cast<ClientLimit>(0), std::memory_order_release);
-#endif
m_clientOffset = 0;
return alignedSpan(m_clientOffset, 0);
}
Modified: trunk/Source/WebKit/Platform/IPC/StreamConnectionWorkQueue.cpp (275552 => 275553)
--- trunk/Source/WebKit/Platform/IPC/StreamConnectionWorkQueue.cpp 2021-04-06 21:14:43 UTC (rev 275552)
+++ trunk/Source/WebKit/Platform/IPC/StreamConnectionWorkQueue.cpp 2021-04-06 21:27:06 UTC (rev 275553)
@@ -29,9 +29,7 @@
namespace IPC {
StreamConnectionWorkQueue::StreamConnectionWorkQueue(const char* name)
-#if PLATFORM(COCOA) || PLATFORM(WIN)
: m_name(name)
-#endif
{
}
@@ -63,28 +61,22 @@
m_connections.remove(connection);
ASSERT(!m_shouldQuit); // Re-entering during shutdown not supported.
}
-#if PLATFORM(COCOA) || PLATFORM(WIN)
m_wakeUpSemaphore.signal();
-#endif
}
void StreamConnectionWorkQueue::stop()
{
m_shouldQuit = true;
-#if PLATFORM(COCOA) || PLATFORM(WIN)
if (!m_processingThread)
return;
m_wakeUpSemaphore.signal();
m_processingThread->waitForCompletion();
m_processingThread = nullptr;
-#endif
}
void StreamConnectionWorkQueue::wakeUp()
{
-#if PLATFORM(COCOA) || PLATFORM(WIN)
m_wakeUpSemaphore.signal();
-#endif
}
IPC::Semaphore& StreamConnectionWorkQueue::wakeUpSemaphore()
@@ -94,7 +86,6 @@
void StreamConnectionWorkQueue::wakeUpProcessingThread()
{
-#if PLATFORM(COCOA) || PLATFORM(WIN)
if (m_processingThread) {
m_wakeUpSemaphore.signal();
return;
@@ -111,7 +102,6 @@
}
};
m_processingThread = Thread::create(m_name, WTFMove(task), ThreadType::Graphics, Thread::QOS::UserInteractive);
-#endif
}
void StreamConnectionWorkQueue::processStreams()
Modified: trunk/Source/WebKit/Platform/IPC/StreamConnectionWorkQueue.h (275552 => 275553)
--- trunk/Source/WebKit/Platform/IPC/StreamConnectionWorkQueue.h 2021-04-06 21:14:43 UTC (rev 275552)
+++ trunk/Source/WebKit/Platform/IPC/StreamConnectionWorkQueue.h 2021-04-06 21:27:06 UTC (rev 275553)
@@ -53,9 +53,7 @@
void wakeUpProcessingThread();
void processStreams();
-#if PLATFORM(COCOA) || PLATFORM(WIN)
const char* const m_name;
-#endif
Semaphore m_wakeUpSemaphore;
RefPtr<Thread> m_processingThread;
Modified: trunk/Source/WebKit/Platform/IPC/StreamServerConnection.cpp (275552 => 275553)
--- trunk/Source/WebKit/Platform/IPC/StreamServerConnection.cpp 2021-04-06 21:14:43 UTC (rev 275552)
+++ trunk/Source/WebKit/Platform/IPC/StreamServerConnection.cpp 2021-04-06 21:27:06 UTC (rev 275553)
@@ -88,7 +88,6 @@
readSize = std::max(readSize, minimumMessageSize);
ServerOffset serverOffset = static_cast<ServerOffset>(wrapOffset(alignOffset(m_serverOffset) + readSize));
-#if PLATFORM(COCOA) || PLATFORM(WIN)
ServerOffset oldServerOffset = sharedServerOffset().exchange(serverOffset, std::memory_order_acq_rel);
// If the client wrote over serverOffset, it means the client is waiting.
if (oldServerOffset == ServerOffset::clientIsWaitingTag)
@@ -95,10 +94,6 @@
m_buffer.clientWaitSemaphore().signal();
else
ASSERT(!(oldServerOffset & ServerOffset::clientIsWaitingTag));
-#else
- sharedServerOffset().store(serverOffset, std::memory_order_release);
- // IPC::Semaphore not implemented for the platform. Client will poll and yield.
-#endif
m_serverOffset = serverOffset;
}
@@ -106,7 +101,6 @@
void StreamServerConnectionBase::releaseAll()
{
sharedServerLimit().store(static_cast<ServerLimit>(0), std::memory_order_release);
-#if PLATFORM(COCOA) || PLATFORM(WIN)
ServerOffset oldServerOffset = sharedServerOffset().exchange(static_cast<ServerOffset>(0), std::memory_order_acq_rel);
// If the client wrote over serverOffset, it means the client is waiting.
if (oldServerOffset == ServerOffset::clientIsWaitingTag)
@@ -113,10 +107,6 @@
m_buffer.clientWaitSemaphore().signal();
else
ASSERT(!(oldServerOffset & ServerOffset::clientIsWaitingTag));
-#else
- sharedServerOffset().store(static_cast<ServerOffset>(0), std::memory_order_release);
- // IPC::Semaphore not implemented for the platform. Client will poll and yield.
-#endif
m_serverOffset = 0;
}
Copied: trunk/Source/WebKit/Platform/IPC/unix/IPCSemaphoreUnix.cpp (from rev 275552, trunk/Source/WebKit/Platform/IPC/IPCSemaphore.cpp) (0 => 275553)
--- trunk/Source/WebKit/Platform/IPC/unix/IPCSemaphoreUnix.cpp (rev 0)
+++ trunk/Source/WebKit/Platform/IPC/unix/IPCSemaphoreUnix.cpp 2021-04-06 21:27:06 UTC (rev 275553)
@@ -0,0 +1,71 @@
+/*
+ * Copyright (C) 2021 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "IPCSemaphore.h"
+
+namespace IPC {
+
+Semaphore::Semaphore()
+{
+ ASSERT_NOT_REACHED();
+}
+
+Semaphore::Semaphore(Semaphore&&)
+{
+ ASSERT_NOT_REACHED();
+}
+
+Semaphore::~Semaphore() = default;
+
+Semaphore& Semaphore::operator=(Semaphore&&) = default;
+
+void Semaphore::signal()
+{
+}
+
+void Semaphore::wait()
+{
+}
+
+bool Semaphore::waitFor(Timeout)
+{
+ return false;
+}
+
+void Semaphore::encode(Encoder&) const
+{
+}
+
+Optional<Semaphore> Semaphore::decode(Decoder&)
+{
+ return Semaphore { };
+}
+
+void Semaphore::destroy()
+{
+}
+
+} // namespace IPC
Modified: trunk/Source/WebKit/PlatformPlayStation.cmake (275552 => 275553)
--- trunk/Source/WebKit/PlatformPlayStation.cmake 2021-04-06 21:14:43 UTC (rev 275552)
+++ trunk/Source/WebKit/PlatformPlayStation.cmake 2021-04-06 21:27:06 UTC (rev 275553)
@@ -52,6 +52,7 @@
Platform/IPC/unix/AttachmentUnix.cpp
Platform/IPC/unix/ConnectionUnix.cpp
+ Platform/IPC/unix/IPCSemaphoreUnix.cpp
Platform/classifier/ResourceLoadStatisticsClassifier.cpp
Modified: trunk/Source/WebKit/Sources.txt (275552 => 275553)
--- trunk/Source/WebKit/Sources.txt 2021-04-06 21:14:43 UTC (rev 275552)
+++ trunk/Source/WebKit/Sources.txt 2021-04-06 21:27:06 UTC (rev 275553)
@@ -146,7 +146,6 @@
Platform/IPC/Connection.cpp @no-unify
Platform/IPC/Decoder.cpp @no-unify
Platform/IPC/Encoder.cpp @no-unify
-Platform/IPC/IPCSemaphore.cpp @no-unify
Platform/IPC/JSIPCBinding.cpp @no-unify
Platform/IPC/MessageReceiveQueueMap.cpp @no-unify
Platform/IPC/MessageReceiverMap.cpp @no-unify
Modified: trunk/Source/WebKit/SourcesGTK.txt (275552 => 275553)
--- trunk/Source/WebKit/SourcesGTK.txt 2021-04-06 21:14:43 UTC (rev 275552)
+++ trunk/Source/WebKit/SourcesGTK.txt 2021-04-06 21:27:06 UTC (rev 275553)
@@ -52,6 +52,7 @@
Platform/IPC/unix/AttachmentUnix.cpp
Platform/IPC/unix/ConnectionUnix.cpp
+Platform/IPC/unix/IPCSemaphoreUnix.cpp
Platform/classifier/ResourceLoadStatisticsClassifier.cpp
Modified: trunk/Source/WebKit/SourcesWPE.txt (275552 => 275553)
--- trunk/Source/WebKit/SourcesWPE.txt 2021-04-06 21:14:43 UTC (rev 275552)
+++ trunk/Source/WebKit/SourcesWPE.txt 2021-04-06 21:27:06 UTC (rev 275553)
@@ -52,6 +52,7 @@
Platform/IPC/unix/AttachmentUnix.cpp
Platform/IPC/unix/ConnectionUnix.cpp
+Platform/IPC/unix/IPCSemaphoreUnix.cpp
Platform/classifier/ResourceLoadStatisticsClassifier.cpp
Modified: trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj (275552 => 275553)
--- trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj 2021-04-06 21:14:43 UTC (rev 275552)
+++ trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj 2021-04-06 21:27:06 UTC (rev 275553)
@@ -1600,7 +1600,6 @@
A1EF36D52581F7EB0090B02A /* MediaFormatReader.bundle in Copy Plug-ins */ = {isa = PBXBuildFile; fileRef = A16E66002581930800EE1749 /* MediaFormatReader.bundle */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
A1FB68241F6E518200C43F9F /* WKCrashReporter.h in Headers */ = {isa = PBXBuildFile; fileRef = A1FB68221F6E518200C43F9F /* WKCrashReporter.h */; settings = {ATTRIBUTES = (Private, ); }; };
A31F60A425CC7DB900AF14F4 /* IPCSemaphore.h in Headers */ = {isa = PBXBuildFile; fileRef = A31F60A225CC7DB800AF14F4 /* IPCSemaphore.h */; };
- A31F60A525CC7DB900AF14F4 /* IPCSemaphore.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A31F60A325CC7DB800AF14F4 /* IPCSemaphore.cpp */; };
A513F5402154A5D700662841 /* WebPageInspectorController.h in Headers */ = {isa = PBXBuildFile; fileRef = A513F53E2154A5CC00662841 /* WebPageInspectorController.h */; };
A518B5D21FE1D55B00F9FA28 /* WKInspectorWKWebView.h in Headers */ = {isa = PBXBuildFile; fileRef = A518B5D01FE1D55B00F9FA28 /* WKInspectorWKWebView.h */; };
A54293A4195A43DA002782C7 /* WKInspectorNodeSearchGestureRecognizer.h in Headers */ = {isa = PBXBuildFile; fileRef = A54293A2195A43C6002782C7 /* WKInspectorNodeSearchGestureRecognizer.h */; };
@@ -5058,7 +5057,6 @@
A1FB68221F6E518200C43F9F /* WKCrashReporter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WKCrashReporter.h; sourceTree = "<group>"; };
A1FB68231F6E518200C43F9F /* WKCrashReporter.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = WKCrashReporter.mm; sourceTree = "<group>"; };
A31F60A225CC7DB800AF14F4 /* IPCSemaphore.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IPCSemaphore.h; sourceTree = "<group>"; };
- A31F60A325CC7DB800AF14F4 /* IPCSemaphore.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IPCSemaphore.cpp; sourceTree = "<group>"; };
A31F60A625CC7DCF00AF14F4 /* IPCSemaphoreDarwin.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IPCSemaphoreDarwin.cpp; sourceTree = "<group>"; };
A38A12E123C93AC700FABFA9 /* TextChecker.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TextChecker.cpp; sourceTree = "<group>"; };
A3937B6123CD1B9B005B2A2E /* WebPreferencesCocoa.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebPreferencesCocoa.mm; sourceTree = "<group>"; };
@@ -7043,7 +7041,6 @@
9BD8AB4925820E52005386F8 /* FontReference.h */,
4151E5C31FBB90A900E47E2D /* FormDataReference.h */,
C0CE72AC1247E78D00BC0EC4 /* HandleMessage.h */,
- A31F60A325CC7DB800AF14F4 /* IPCSemaphore.cpp */,
A31F60A225CC7DB800AF14F4 /* IPCSemaphore.h */,
9BF5EC6325410E9900984E77 /* JSIPCBinding.cpp */,
9B47908E253151CC00EC11AB /* JSIPCBinding.h */,
@@ -13915,7 +13912,6 @@
C1A152D724E5A29A00978C8B /* HandleXPCEndpointMessages.mm in Sources */,
2749F6442146561B008380BF /* InjectedBundleNodeHandle.cpp in Sources */,
2749F6452146561E008380BF /* InjectedBundleRangeHandle.cpp in Sources */,
- A31F60A525CC7DB900AF14F4 /* IPCSemaphore.cpp in Sources */,
9BF5EC642541145600984E77 /* JSIPCBinding.cpp in Sources */,
2D913441212CF9F000128AFD /* JSNPMethod.cpp in Sources */,
2D913442212CF9F000128AFD /* JSNPObject.cpp in Sources */,
Modified: trunk/Source/WebKit/WebProcess/GPU/graphics/RemoteRenderingBackendProxy.cpp (275552 => 275553)
--- trunk/Source/WebKit/WebProcess/GPU/graphics/RemoteRenderingBackendProxy.cpp 2021-04-06 21:14:43 UTC (rev 275552)
+++ trunk/Source/WebKit/WebProcess/GPU/graphics/RemoteRenderingBackendProxy.cpp 2021-04-06 21:27:06 UTC (rev 275553)
@@ -180,11 +180,7 @@
bool RemoteRenderingBackendProxy::waitForGetImageDataToComplete(IPC::Timeout timeout)
{
ASSERT(m_getImageDataSemaphore);
-#if OS(DARWIN)
return m_getImageDataSemaphore->waitFor(timeout);
-#else
- return true;
-#endif
}
void RemoteRenderingBackendProxy::destroyGetImageDataSharedMemory()
@@ -326,9 +322,7 @@
if (!wasEmpty || didChangeItemBuffer == DisplayList::DidChangeItemBuffer::Yes) {
if (m_deferredWakeupMessageArguments) {
if (sharedHandle->tryToResume({ m_deferredWakeupMessageArguments->offset, m_deferredWakeupMessageArguments->destinationImageBufferIdentifier.toUInt64() })) {
-#if PLATFORM(COCOA)
m_resumeDisplayListSemaphore.signal();
-#endif
m_deferredWakeupMessageArguments = WTF::nullopt;
m_remainingItemsToAppendBeforeSendingWakeup = 0;
} else if (!--m_remainingItemsToAppendBeforeSendingWakeup) {
@@ -343,9 +337,7 @@
auto offsetToRead = sharedHandle->writableOffset() - numberOfBytes;
if (sharedHandle->tryToResume({ offsetToRead, destinationImageBuffer.toUInt64() })) {
-#if PLATFORM(COCOA)
m_resumeDisplayListSemaphore.signal();
-#endif
return;
}
Modified: trunk/Source/WebKit/WebProcess/GPU/media/RemoteAudioDestinationProxy.cpp (275552 => 275553)
--- trunk/Source/WebKit/WebProcess/GPU/media/RemoteAudioDestinationProxy.cpp 2021-04-06 21:14:43 UTC (rev 275552)
+++ trunk/Source/WebKit/WebProcess/GPU/media/RemoteAudioDestinationProxy.cpp 2021-04-06 21:27:06 UTC (rev 275553)
@@ -74,7 +74,6 @@
void RemoteAudioDestinationProxy::startRenderingThread()
{
-#if PLATFORM(COCOA)
ASSERT(!m_renderThread);
auto offThreadRendering = [this]() mutable {
@@ -87,12 +86,10 @@
} while (!m_shouldStopThread);
};
m_renderThread = Thread::create("RemoteAudioDestinationProxy render thread", WTFMove(offThreadRendering), ThreadType::Audio, Thread::QOS::UserInteractive);
-#endif
}
void RemoteAudioDestinationProxy::stopRenderingThread()
{
-#if PLATFORM(COCOA)
if (!m_renderThread)
return;
@@ -100,7 +97,6 @@
m_renderSemaphore.signal();
m_renderThread->waitForCompletion();
m_renderThread = nullptr;
-#endif
}
void RemoteAudioDestinationProxy::connectToGPUProcess()