Changeset 205430 in webkit


Ignore:
Timestamp:
Sep 5, 2016 12:15:50 AM (8 years ago)
Author:
zandobersek@gmail.com
Message:

MediaPlayerPrivateGStreamerBase: improve build guards in nativeImageForCurrentTime()
https://bugs.webkit.org/show_bug.cgi?id=161594

Reviewed by Philippe Normand.

Guard the uses of cairo-gl API in nativeImageForCurrentTime() with the
USE(CAIRO) && ENABLE(ACCELERATED_2D_CANVAS) pair of build guards. This
API is only made available when the ACCELERATED_2D_CANVAS option is
enabled. Placing the guards this way thus avoids compilation errors
when compiling USE_GSTREAMER_GL code without the accelerated 2D canvas
support enabled.

  • platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:

(WebCore::MediaPlayerPrivateGStreamerBase::nativeImageForCurrentTime):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r205422 r205430  
     12016-09-05  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        MediaPlayerPrivateGStreamerBase: improve build guards in nativeImageForCurrentTime()
     4        https://bugs.webkit.org/show_bug.cgi?id=161594
     5
     6        Reviewed by Philippe Normand.
     7
     8        Guard the uses of cairo-gl API in nativeImageForCurrentTime() with the
     9        USE(CAIRO) && ENABLE(ACCELERATED_2D_CANVAS) pair of build guards. This
     10        API is only made available when the ACCELERATED_2D_CANVAS option is
     11        enabled. Placing the guards this way thus avoids compilation errors
     12        when compiling USE_GSTREAMER_GL code without the accelerated 2D canvas
     13        support enabled.
     14
     15        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
     16        (WebCore::MediaPlayerPrivateGStreamerBase::nativeImageForCurrentTime):
     17
    1182016-09-04  Sam Weinig  <sam@webkit.org>
    219
  • trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp

    r205180 r205430  
    683683NativeImagePtr MediaPlayerPrivateGStreamerBase::nativeImageForCurrentTime()
    684684{
    685 #if !USE(CAIRO) || !ENABLE(ACCELERATED_2D_CANVAS)
    686     return nullptr;
    687 #endif
    688 
     685#if USE(CAIRO) && ENABLE(ACCELERATED_2D_CANVAS)
    689686    if (m_usingFallbackVideoSink)
    690687        return nullptr;
     
    745742
    746743    return rotatedSurface;
     744#else
     745    return nullptr;
     746#endif
    747747}
    748748#endif
Note: See TracChangeset for help on using the changeset viewer.