Bug 241997 - Consolidate the directive flags for enabling image formats
Summary: Consolidate the directive flags for enabling image formats
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-06-24 23:23 PDT by Said Abou-Hallawa
Modified: 2022-07-01 23:24 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Said Abou-Hallawa 2022-06-24 23:23:35 PDT
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.
Comment 1 Radar WebKit Bug Importer 2022-07-01 23:24:13 PDT
<rdar://problem/96332088>