Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8d2285e7bc8ef4f0ef7a16b14ec73ff89e462b95
https://github.com/WebKit/WebKit/commit/8d2285e7bc8ef4f0ef7a16b14ec73ff89e462b95
Author: Said Abou-Hallawa <[email protected]>
Date: 2026-05-08 (Fri, 08 May 2026)
Changed paths:
M Source/WebCore/platform/graphics/BitmapImage.cpp
M Source/WebCore/platform/graphics/BitmapImage.h
M Source/WebCore/platform/graphics/BitmapImageSource.cpp
M Source/WebCore/platform/graphics/BitmapImageSource.h
M Source/WebCore/platform/graphics/DecodingOptions.h
M Source/WebCore/platform/graphics/ImageDecoder.cpp
M Source/WebCore/platform/graphics/ImageFrame.cpp
M Source/WebCore/platform/graphics/ImageFrame.h
M Source/WebCore/platform/graphics/ImageSource.h
M Source/WebCore/platform/graphics/NativeImageSource.h
M Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp
Log Message:
-----------
[HDR] Replace ShouldDecodeToHDR with DecodingDestination
https://bugs.webkit.org/show_bug.cgi?id=313600
rdar://175805956
Reviewed by Cameron McCormack.
The enum ShouldDecodeToHDR will be replaced with another enum
DecodingDestination.
The values of DecodingDestination are { Base, ShouldDecodeToHDR }. In a future
PR,
the enum value BaseAndGainMap will be added and handled.
ImageFrame will now have an EnumeratedArray indexed by DecodingDestination. This
array will hold different decoded destinations for the same frame.
DecodingOptions will hold a member of type DecodingDestination. It will be used
for compatibility matching.
* Source/WebCore/platform/graphics/BitmapImage.cpp:
(WebCore::BitmapImage::draw):
* Source/WebCore/platform/graphics/BitmapImage.h:
* Source/WebCore/platform/graphics/BitmapImageSource.cpp:
(WebCore::BitmapImageSource::destroyNativeImageAtIndex):
(WebCore::BitmapImageSource::preferredDecodingDestination const):
(WebCore::BitmapImageSource::decode):
(WebCore::BitmapImageSource::imageFrameDecodeAtIndexHasFinished):
(WebCore::BitmapImageSource::cacheNativeImageAtIndex):
(WebCore::BitmapImageSource::nativeImageAtIndexCacheIfNeeded):
(WebCore::BitmapImageSource::nativeImageAtIndexRequestIfNeeded):
(WebCore::BitmapImageSource::currentNativeImageForDrawing):
* Source/WebCore/platform/graphics/BitmapImageSource.h:
* Source/WebCore/platform/graphics/DecodingOptions.h:
(WebCore::DecodingOptions::DecodingOptions):
(WebCore::DecodingOptions::decodingDestination const):
(WebCore::DecodingOptions::isCompatibleWith const):
(WebCore::DecodingOptions::shouldDecodeToHDR const): Deleted.
* Source/WebCore/platform/graphics/ImageDecoder.cpp:
(WebCore::ImageDecoder::fetchFrameMetaDataAtIndex const):
* Source/WebCore/platform/graphics/ImageFrame.cpp:
(WebCore::ImageFrame::ImageFrame):
(WebCore::ImageFrame::sizeInBytes const):
(WebCore::ImageFrame::clearImage):
(WebCore::ImageFrame::hasNativeImage const):
(WebCore::ImageFrame::hasFullSizeNativeImage const):
(WebCore::ImageFrame::hasDecodedNativeImageCompatibleWithOptions const):
(WebCore::ImageFrame::clearSourceImage): Deleted.
* Source/WebCore/platform/graphics/ImageFrame.h:
(WebCore::ImageFrame::nativeImage const):
(WebCore::ImageFrame::decodingOptions const):
(WebCore::ImageFrame::headroom const):
(WebCore::ImageFrame::hasNativeImage const):
(WebCore::ImageFrame::Destination::clear):
(WebCore::ImageFrame::decodingDestinationIfExists const):
(WebCore::ImageFrame::destination):
(WebCore::ImageFrame::destination const):
(WebCore::ImageFrame::Source::hasNativeImage const): Deleted.
(WebCore::ImageFrame::Source::hasFullSizeNativeImage const): Deleted.
(WebCore::ImageFrame::Source::hasDecodedNativeImageCompatibleWithOptions
const): Deleted.
(WebCore::ImageFrame::Source::sizeInBytes const): Deleted.
(WebCore::ImageFrame::Source::clear): Deleted.
(WebCore::ImageFrame::shouldDecodeToHDRIfExists const): Deleted.
(WebCore::ImageFrame::source): Deleted.
(WebCore::ImageFrame::source const): Deleted.
* Source/WebCore/platform/graphics/ImageSource.h:
(WebCore::ImageSource::preferredDecodingDestination const):
* Source/WebCore/platform/graphics/NativeImageSource.h:
* Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp:
(WebCore::appendImageSourceOption):
(WebCore::imageSourceOptions):
(WebCore::imageSourceThumbnailOptions):
(WebCore::ImageDecoderCG::fetchFrameMetaDataAtIndex const):
(WebCore::ImageDecoderCG::createFrameImageAtIndex):
Canonical link: https://commits.webkit.org/312893@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications