Changeset 238929 in webkit


Ignore:
Timestamp:
Dec 6, 2018 5:07:46 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[GStreamer] -DENABLE_VIDEO=ON -DENABLE_OPENGL=OFF still tries to build GstreamerGL
https://bugs.webkit.org/show_bug.cgi?id=191998

Patch by Carlos Eduardo Ramalho <cadubentzen@gmail.com> on 2018-12-06
Reviewed by Philippe Normand.

Fix compilation with -DENABLE_VIDEO=ON and -DENABLE_OPENGL=OFF due to GStreamerGL.

.:

  • Source/cmake/GStreamerDependencies.cmake: "DEFINED ENABLE_OPENGL" is always false because ENABLE_OPENGL

is not a CMake variable (WEBKIT_OPTION_DEFINE macro does not define ENABLE_OPENGL variable per se, but other
variables and appends it to a list).

  • Source/cmake/OptionsGTK.cmake: GStreamerDefinitions.cmake was included twice by mistake. Second should be GStreamerDependencies.cmake.

Source/WebCore:

No new tests required. Only fixing the build with certain flags.

  • Modules/mediastream/CanvasCaptureMediaStreamTrack.cpp:

(WebCore::CanvasCaptureMediaStreamTrack::Source::canvasChanged): add required #if ENABLE(WEBGL).

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r238928 r238929  
     12018-12-06  Carlos Eduardo Ramalho  <cadubentzen@gmail.com>
     2
     3        [GStreamer] -DENABLE_VIDEO=ON -DENABLE_OPENGL=OFF still tries to build GstreamerGL
     4        https://bugs.webkit.org/show_bug.cgi?id=191998
     5
     6        Reviewed by Philippe Normand.
     7
     8        Fix compilation with -DENABLE_VIDEO=ON and -DENABLE_OPENGL=OFF due to GStreamerGL.
     9
     10        * Source/cmake/GStreamerDependencies.cmake: "DEFINED ENABLE_OPENGL" is always false because ENABLE_OPENGL
     11        is not a CMake variable (WEBKIT_OPTION_DEFINE macro does not define ENABLE_OPENGL variable per se, but other
     12        variables and appends it to a list).
     13        * Source/cmake/OptionsGTK.cmake: GStreamerDefinitions.cmake was included twice by mistake. Second should be GStreamerDependencies.cmake.
     14
    1152018-12-06  Carlos Eduardo Ramalho  <cadubentzen@gmail.com>
    216
  • trunk/Source/WebCore/ChangeLog

    r238928 r238929  
     12018-12-06  Carlos Eduardo Ramalho  <cadubentzen@gmail.com>
     2
     3        [GStreamer] -DENABLE_VIDEO=ON -DENABLE_OPENGL=OFF still tries to build GstreamerGL
     4        https://bugs.webkit.org/show_bug.cgi?id=191998
     5
     6        Reviewed by Philippe Normand.
     7
     8        Fix compilation with -DENABLE_VIDEO=ON and -DENABLE_OPENGL=OFF due to GStreamerGL.
     9
     10        No new tests required. Only fixing the build with certain flags.
     11
     12        * Modules/mediastream/CanvasCaptureMediaStreamTrack.cpp:
     13        (WebCore::CanvasCaptureMediaStreamTrack::Source::canvasChanged): add required #if ENABLE(WEBGL).
     14
    1152018-12-06  Carlos Eduardo Ramalho  <cadubentzen@gmail.com>
    216
  • trunk/Source/WebCore/Modules/mediastream/CanvasCaptureMediaStreamTrack.cpp

    r236877 r238929  
    144144    ASSERT_UNUSED(canvas, m_canvas == &canvas);
    145145
     146#if ENABLE(WEBGL)
    146147    // FIXME: We need to preserve drawing buffer as we are currently grabbing frames asynchronously.
    147148    // We should instead add an anchor point for both 2d and 3d contexts where canvas will actually paint.
     
    154155        }
    155156    }
     157#endif
    156158
    157159    // FIXME: We should try to generate the frame at the time the screen is being updated.
  • trunk/Source/cmake/GStreamerDependencies.cmake

    r221072 r238929  
    1 if (DEFINED ENABLE_OPENGL)
     1if (PORT STREQUAL "GTK")
    22  WEBKIT_OPTION_DEPEND(USE_GSTREAMER_GL ENABLE_OPENGL)
    33endif ()
  • trunk/Source/cmake/OptionsGTK.cmake

    r238928 r238929  
    151151WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEB_RTC PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES})
    152152
    153 include(GStreamerDefinitions)
     153include(GStreamerDependencies)
    154154
    155155# Finalize the value for all options. Do not attempt to use an option before
Note: See TracChangeset for help on using the changeset viewer.