Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c4dc35645e7bf1d2389f01bde732058230041de1
https://github.com/WebKit/WebKit/commit/c4dc35645e7bf1d2389f01bde732058230041de1
Author: Said Abou-Hallawa <[email protected]>
Date: 2025-10-17 (Fri, 17 Oct 2025)
Changed paths:
M Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp
Log Message:
-----------
REGRESSION(293871@main): WeChat app allocates large sizes of memory for high
resolution images on iOS 26
https://bugs.webkit.org/show_bug.cgi?id=300903
rdar://162787553
Reviewed by Simon Fraser.
293871@main removes setting the value for the key kCGImageSourceSubsampleFactor
in the decoding options. This option is useful when decoding a high resolution
image which will be displayed on a much smaller rectangle. ImageIO decodes the
image with a smaller rectangle in this case. This saves memory and CPU time.
* Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp:
(WebCore::appendImageSourceOption):
(WebCore::imageSourceMetadataOptions):
(WebCore::imageSourceOptions):
(WebCore::imageSourceThumbnailOptions):
(WebCore::ImageDecoderCG::hasHDRGainMap const):
(WebCore::ImageDecoderCG::frameDensityCorrectedSizeAtIndex const):
(WebCore::ImageDecoderCG::fetchFrameMetaDataAtIndex const):
(WebCore::createImageSourceMetadataOptions): Deleted.
(WebCore::appendImageSourceOptions): Deleted.
Canonical link: https://commits.webkit.org/301729@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes