[MediaStream] Restructure getDisplayMedia classes
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Jul 2018 19:31:03 +0000 (19:31 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Jul 2018 19:31:03 +0000 (19:31 +0000)
https://bugs.webkit.org/show_bug.cgi?id=187905
<rdar://problem/42500215>

Unreviewed build fix.

* platform/mediastream/mac/DisplayCaptureSourceCocoa.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@234164 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/mediastream/mac/DisplayCaptureSourceCocoa.cpp

index f56621c..54d0db6 100644 (file)
@@ -1,3 +1,13 @@
+2018-07-24  Eric Carlson  <eric.carlson@apple.com>
+
+        [MediaStream] Restructure getDisplayMedia classes
+        https://bugs.webkit.org/show_bug.cgi?id=187905
+        <rdar://problem/42500215>
+
+        Unreviewed build fix.
+
+        * platform/mediastream/mac/DisplayCaptureSourceCocoa.cpp: 
+
 2018-07-24  Antoine Quint  <graouts@apple.com>
 
         [Web Animations] Crash when setting "animation: none" after clearing an animation's effect
index 5f033f3..e74cbee 100644 (file)
@@ -42,6 +42,8 @@
 #include <wtf/MainThread.h>
 #include <wtf/NeverDestroyed.h>
 
+#include "CoreVideoSoftLink.h"
+
 namespace WebCore {
 using namespace PAL;
 
@@ -178,7 +180,7 @@ RetainPtr<CMSampleBufferRef> DisplayCaptureSourceCocoa::sampleBufferFromPixelBuf
     return adoptCF(sampleBuffer);
 }
 
-#if HAVE(IOSURFACE)
+#if HAVE(IOSURFACE) && PLATFORM(MAC)
 static int32_t roundUpToMacroblockMultiple(int32_t size)
 {
     return (size + 15) & ~15;