Title: [251454] trunk/Source/WebCore
Revision
251454
Author
[email protected]
Date
2019-10-22 14:03:30 -0700 (Tue, 22 Oct 2019)

Log Message

WebCoreDecompressionSession needs padding on all platforms to avoid link warnings
https://bugs.webkit.org/show_bug.cgi?id=203267
<rdar://problem/56514219>

Reviewed by Simon Fraser.

It's annoying that we have to do this, but it is less annoying than getting
4 linker warnings every time you compile for iOS.

* platform/graphics/cocoa/WebCoreDecompressionSession.mm:
(WebCore::WebCoreDecompressionSession::enqueueSample): Use padding everywhere.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (251453 => 251454)


--- trunk/Source/WebCore/ChangeLog	2019-10-22 20:48:08 UTC (rev 251453)
+++ trunk/Source/WebCore/ChangeLog	2019-10-22 21:03:30 UTC (rev 251454)
@@ -1,3 +1,17 @@
+2019-10-22  Dean Jackson  <[email protected]>
+
+        WebCoreDecompressionSession needs padding on all platforms to avoid link warnings
+        https://bugs.webkit.org/show_bug.cgi?id=203267
+        <rdar://problem/56514219>
+
+        Reviewed by Simon Fraser.
+
+        It's annoying that we have to do this, but it is less annoying than getting
+        4 linker warnings every time you compile for iOS.
+
+        * platform/graphics/cocoa/WebCoreDecompressionSession.mm:
+        (WebCore::WebCoreDecompressionSession::enqueueSample): Use padding everywhere.
+
 2019-10-22  Tim Horton  <[email protected]>
 
         Make it possible to not include IPC Messages headers in other headers

Modified: trunk/Source/WebCore/platform/graphics/cocoa/WebCoreDecompressionSession.mm (251453 => 251454)


--- trunk/Source/WebCore/platform/graphics/cocoa/WebCoreDecompressionSession.mm	2019-10-22 20:48:08 UTC (rev 251453)
+++ trunk/Source/WebCore/platform/graphics/cocoa/WebCoreDecompressionSession.mm	2019-10-22 21:03:30 UTC (rev 251454)
@@ -124,12 +124,8 @@
         m_decompressionQueue = adoptOSObject(dispatch_queue_create("SourceBufferPrivateAVFObjC Decompression Queue", DISPATCH_QUEUE_SERIAL));
 
     // CMBufferCallbacks contains 64-bit pointers that aren't 8-byte aligned. To suppress the linker
-    // warning about this, we prepend 4 bytes of padding when building for macOS.
-#if PLATFORM(MAC)
+    // warning about this, we prepend 4 bytes of padding when building.
     const size_t padSize = 4;
-#else
-    const size_t padSize = 0;
-#endif
 
     if (!m_producerQueue) {
         CMBufferQueueRef outQueue { nullptr };
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to