[Webkit-unassigned] [Bug 241997] New: Consolidate the directive flags for enabling image formats

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 24 23:23:35 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=241997

            Bug ID: 241997
           Summary: Consolidate the directive flags for enabling image
                    formats
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Images
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com
                CC: sabouhallawa at apple.com

HAVE_WEBP: 

It is defined in PlatformHave.h for Apple ports

#if PLATFORM(COCOA)
#define HAVE_WEBP 1
#endif

USE_WEBP:

It is defined in Source/cmake/OptionsPlayStation.cmake and Source/cmake/OptionsWinCairo.cmake for WinCairo 
And it is defined in PlatformUse.h for GTK and WPE

#if PLATFORM(GTK) || PLATFORM(WPE)
#define USE_WEBP 1
#endif

HAVE_AVIF:

It is defined in PlatformHave.h for Apple ports. See https://github.com/WebKit/WebKit/pull/1717

USE_AVIF:

It is defined in Source/cmake/OptionsWPE.cmake for WPE
And it is defined Source/cmake/OptionsGTK.cmake for GTK


We need a single flag for WebP and another flag for AVIF to control when the image format is enabled.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220625/9ff273db/attachment.htm>


More information about the webkit-unassigned mailing list