Title: [223298] trunk/Source/WebCore
Revision
223298
Author
jer.no...@apple.com
Date
2017-10-13 13:24:28 -0700 (Fri, 13 Oct 2017)

Log Message

Unreviewed build fix; wrap more functions in USE(IOSURFACE) so that
they do not generate "unused function" errors.

* platform/graphics/cv/VideoTextureCopierCV.cpp:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (223297 => 223298)


--- trunk/Source/WebCore/ChangeLog	2017-10-13 19:55:47 UTC (rev 223297)
+++ trunk/Source/WebCore/ChangeLog	2017-10-13 20:24:28 UTC (rev 223298)
@@ -1,5 +1,12 @@
 2017-10-13  Jer Noble  <jer.no...@apple.com>
 
+        Unreviewed build fix; wrap more functions in USE(IOSURFACE) so that
+        they do not generate "unused function" errors.
+
+        * platform/graphics/cv/VideoTextureCopierCV.cpp:
+
+2017-10-13  Jer Noble  <jer.no...@apple.com>
+
         One last unreviewed build fix; since the IOSurface APIs don't exist at
         all on the simulator, just wrap the entirety of the implementation of
         copyImageToPlatformTexture() in a #if USE(IOSURFACE) check.

Modified: trunk/Source/WebCore/platform/graphics/cv/VideoTextureCopierCV.cpp (223297 => 223298)


--- trunk/Source/WebCore/platform/graphics/cv/VideoTextureCopierCV.cpp	2017-10-13 19:55:47 UTC (rev 223297)
+++ trunk/Source/WebCore/platform/graphics/cv/VideoTextureCopierCV.cpp	2017-10-13 20:24:28 UTC (rev 223298)
@@ -41,6 +41,7 @@
 
 namespace WebCore {
 
+#if USE(IOSURFACE)
 enum class PixelRange {
     Unknown,
     Video,
@@ -158,6 +159,7 @@
     ASSERT(iterator != matrices.get().end());
     return iterator->second;
 }
+#endif // USE(IOSURFACE)
 
 VideoTextureCopierCV::VideoTextureCopierCV(GraphicsContext3D& context)
     : m_context(context)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to