Changeset 276915 in webkit


Ignore:
Timestamp:
May 3, 2021, 12:15:16 PM (4 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] Build with VIDEO=OFF fails
https://bugs.webkit.org/show_bug.cgi?id=225316

Patch by Philippe Normand <pnormand@igalia.com> on 2021-05-03
Reviewed by Adrian Perez de Castro.

  • platform/audio/PlatformMediaSession.cpp:

(WebCore::isPlayingAudio): Guard against invalid media types, when video is disabled we can
safely return false here as well.

  • platform/graphics/opengl/GraphicsContextGLOpenGL.h: Include what we use (UniqueRef).
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r276913 r276915  
     12021-05-03  Philippe Normand  <pnormand@igalia.com>
     2
     3        [GTK] Build with VIDEO=OFF fails
     4        https://bugs.webkit.org/show_bug.cgi?id=225316
     5
     6        Reviewed by Adrian Perez de Castro.
     7
     8        * platform/audio/PlatformMediaSession.cpp:
     9        (WebCore::isPlayingAudio): Guard against invalid media types, when video is disabled we can
     10        safely return false here as well.
     11        * platform/graphics/opengl/GraphicsContextGLOpenGL.h: Include what we use (UniqueRef).
     12
    1132021-05-03  Sihui Liu  <sihui_liu@apple.com>
    214
  • trunk/Source/WebCore/platform/audio/PlatformMediaSession.cpp

    r276883 r276915  
    377377static inline bool isPlayingAudio(PlatformMediaSession::MediaType mediaType)
    378378{
     379#if ENABLE(VIDEO)
    379380    return mediaType == MediaElementSession::MediaType::VideoAudio || mediaType == MediaElementSession::MediaType::Audio;
     381#else
     382    UNUSED_PARAM(mediaType);
     383    return false;
     384#endif
    380385}
    381386
  • trunk/Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGL.h

    r275976 r276915  
    3535#include <wtf/RetainPtr.h>
    3636#include <wtf/UniqueArray.h>
     37#include <wtf/UniqueRef.h>
    3738
    3839#if PLATFORM(COCOA)
Note: See TracChangeset for help on using the changeset viewer.