⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 268859 in webkit


Ignore:
Timestamp:
Oct 22, 2020, 3:00:32 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

[GStreamer] Restrict ImageDecoder to WebProcess
https://bugs.webkit.org/show_bug.cgi?id=218023

Patch by Philippe Normand <pnormand@igalia.com> on 2020-10-22
Reviewed by Carlos Garcia Campos.

Ideally this decoder should operate only from the WebProcess (or from the GPUProcess) which
should be the only process where GStreamer has been runtime initialized. This is a step
towards a GStreamer-free GTK/WPE UIProcess.

  • platform/graphics/gstreamer/ImageDecoderGStreamer.cpp:

(WebCore::ImageDecoderGStreamer::supportsContainerType):
(WebCore::ImageDecoderGStreamer::canDecodeType):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r268856 r268859  
     12020-10-22  Philippe Normand  <pnormand@igalia.com>
     2
     3        [GStreamer] Restrict ImageDecoder to WebProcess
     4        https://bugs.webkit.org/show_bug.cgi?id=218023
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Ideally this decoder should operate only from the WebProcess (or from the GPUProcess) which
     9        should be the only process where GStreamer has been runtime initialized. This is a step
     10        towards a GStreamer-free GTK/WPE UIProcess.
     11
     12        * platform/graphics/gstreamer/ImageDecoderGStreamer.cpp:
     13        (WebCore::ImageDecoderGStreamer::supportsContainerType):
     14        (WebCore::ImageDecoderGStreamer::canDecodeType):
     15
    1162020-10-22  Martin Robinson  <mrobinson@igalia.com>
    217
  • trunk/Source/WebCore/platform/graphics/gstreamer/ImageDecoderGStreamer.cpp

    r268576 r268859  
    9999bool ImageDecoderGStreamer::supportsContainerType(const String& type)
    100100{
     101    // Ideally this decoder should operate only from the WebProcess (or from the GPUProcess) which
     102    // should be the only process where GStreamer has been runtime initialized.
     103    if (!gst_is_initialized())
     104        return false;
     105
    101106    return GStreamerRegistryScanner::singleton().isContainerTypeSupported(GStreamerRegistryScanner::Configuration::Decoding, type);
    102107}
     
    104109bool ImageDecoderGStreamer::canDecodeType(const String& mimeType)
    105110{
     111    // Ideally this decoder should operate only from the WebProcess (or from the GPUProcess) which
     112    // should be the only process where GStreamer has been runtime initialized.
     113    if (!gst_is_initialized())
     114        return false;
     115
    106116    if (mimeType.isEmpty())
    107117        return false;
Note: See TracChangeset for help on using the changeset viewer.