Title: [291406] trunk
Revision
291406
Author
[email protected]
Date
2022-03-17 07:46:39 -0700 (Thu, 17 Mar 2022)

Log Message

[GTK][WPE] Also enable USE_TEXTURE_MAPPER_DMABUF alongside other DMABuf-related defines
https://bugs.webkit.org/show_bug.cgi?id=238017

Patch by Zan Dobersek <[email protected]> on 2022-03-17
Reviewed by Alejandro G. Castro.

For the GTK port, define USE_TEXTURE_MAPPER_DMABUF alongside the
dependencies and defines for DMABuf-backed ANGLE integration. This will
enable usage of the DMABuf-based video sink in any GStreamer pipeline
and subsequently display of the provided DMABuf objects. A comment is
added to explain this should be covered by a separate configuration
option on which USE_ANGLE_WEBGL should then depend.

For the WPE port the define is also added but without conditions, just
like it's done for the dependencies and the USE_LIBGBM define.

* Source/cmake/OptionsGTK.cmake:
* Source/cmake/OptionsWPE.cmake:

Modified Paths

Diff

Modified: trunk/ChangeLog (291405 => 291406)


--- trunk/ChangeLog	2022-03-17 14:42:30 UTC (rev 291405)
+++ trunk/ChangeLog	2022-03-17 14:46:39 UTC (rev 291406)
@@ -1,5 +1,25 @@
 2022-03-17  Zan Dobersek  <[email protected]>
 
+        [GTK][WPE] Also enable USE_TEXTURE_MAPPER_DMABUF alongside other DMABuf-related defines
+        https://bugs.webkit.org/show_bug.cgi?id=238017
+
+        Reviewed by Alejandro G. Castro.
+
+        For the GTK port, define USE_TEXTURE_MAPPER_DMABUF alongside the
+        dependencies and defines for DMABuf-backed ANGLE integration. This will
+        enable usage of the DMABuf-based video sink in any GStreamer pipeline
+        and subsequently display of the provided DMABuf objects. A comment is
+        added to explain this should be covered by a separate configuration
+        option on which USE_ANGLE_WEBGL should then depend.
+
+        For the WPE port the define is also added but without conditions, just
+        like it's done for the dependencies and the USE_LIBGBM define.
+
+        * Source/cmake/OptionsGTK.cmake:
+        * Source/cmake/OptionsWPE.cmake:
+
+2022-03-17  Zan Dobersek  <[email protected]>
+
         [GTK][WPE] Guard libgbm and libdrm code, make them conditional dependencies for GTK
         https://bugs.webkit.org/show_bug.cgi?id=237974
 

Modified: trunk/Source/cmake/OptionsGTK.cmake (291405 => 291406)


--- trunk/Source/cmake/OptionsGTK.cmake	2022-03-17 14:42:30 UTC (rev 291405)
+++ trunk/Source/cmake/OptionsGTK.cmake	2022-03-17 14:46:39 UTC (rev 291406)
@@ -383,9 +383,18 @@
     SET_AND_EXPOSE_TO_BUILD(USE_ANGLE ${USE_ANGLE_WEBGL})
 
     if (USE_ANGLE_WEBGL)
+        # ANGLE-backed WebGL depends on DMABuf support, which at the moment is leveraged
+        # through libgbm and libdrm dependencies. USE_LIBGBM and USE_TEXTURE_MAPPER_DMABUF
+        # also have to be defined in that case.
+        # TODO: There should be a more generic configuration option on which USE_ANGLE_WEBGL
+        # should depend. These dependencies and defines would be applied when that option
+        # is enabled.
+
         find_package(GBM REQUIRED)
         find_package(LibDRM REQUIRED)
+
         SET_AND_EXPOSE_TO_BUILD(USE_LIBGBM TRUE)
+        SET_AND_EXPOSE_TO_BUILD(USE_TEXTURE_MAPPER_DMABUF TRUE)
     endif ()
 endif ()
 

Modified: trunk/Source/cmake/OptionsWPE.cmake (291405 => 291406)


--- trunk/Source/cmake/OptionsWPE.cmake	2022-03-17 14:42:30 UTC (rev 291405)
+++ trunk/Source/cmake/OptionsWPE.cmake	2022-03-17 14:46:39 UTC (rev 291406)
@@ -306,6 +306,7 @@
 
 SET_AND_EXPOSE_TO_BUILD(USE_TEXTURE_MAPPER TRUE)
 SET_AND_EXPOSE_TO_BUILD(USE_TEXTURE_MAPPER_GL TRUE)
+SET_AND_EXPOSE_TO_BUILD(USE_TEXTURE_MAPPER_DMABUF TRUE)
 SET_AND_EXPOSE_TO_BUILD(USE_TILED_BACKING_STORE TRUE)
 SET_AND_EXPOSE_TO_BUILD(USE_COORDINATED_GRAPHICS TRUE)
 SET_AND_EXPOSE_TO_BUILD(USE_NICOSIA TRUE)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to