[webkit-changes] [WebKit/WebKit] 8e8ab0: Add SPI to decode image data with size
Sihui
noreply at github.com
Mon Oct 21 13:36:22 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8e8ab054e9b335906ef4cc8a8bfb9f0940fccdb0
https://github.com/WebKit/WebKit/commit/8e8ab054e9b335906ef4cc8a8bfb9f0940fccdb0
Author: Sihui Liu <sihui_liu at apple.com>
Date: 2024-10-21 (Mon, 21 Oct 2024)
Changed paths:
M Source/WebCore/platform/graphics/ImageUtilities.h
M Source/WebCore/platform/graphics/cg/ImageUtilitiesCG.cpp
M Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm
M Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h
M Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm
M Source/WebKit/UIProcess/WebPageProxy.h
M Source/WebKit/WebProcess/WebPage/Cocoa/WebPageCocoa.mm
M Source/WebKit/WebProcess/WebPage/WebPage.h
M Source/WebKit/WebProcess/WebPage/WebPage.messages.in
M Tools/TestWebKitAPI/Tests/WebKitCocoa/LoadAndDecodeImage.mm
Log Message:
-----------
Add SPI to decode image data with size
https://bugs.webkit.org/show_bug.cgi?id=281776
rdar://136706482
Reviewed by Darin Adler.
Provide a way for client to generate icon data and decode image data in a sandboxed process.
New API Test: WebKit.CreateIconFromImageData.
* Source/WebCore/platform/graphics/ImageUtilities.h:
* Source/WebCore/platform/graphics/cg/ImageUtilitiesCG.cpp:
(WebCore::createNativeImageFromData):
(WebCore::cfString):
(WebCore::expandNativeImageToData):
(WebCore::createIconDataFromImageData):
(WebCore::decodeImageWithSize):
* Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _createIconDataFromImageData:withLengths:completionHandler:]):
(-[WKWebView _decodeImageData:preferredSize:completionHandler:]):
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h:
* Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm:
(WebKit::WebPageProxy::createIconDataFromImageData):
(WebKit::WebPageProxy::decodeImageData):
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/WebProcess/WebPage/Cocoa/WebPageCocoa.mm:
(WebKit::WebPage::createIconDataFromImageData):
(WebKit::WebPage::decodeImageData):
* Source/WebKit/WebProcess/WebPage/WebPage.h:
* Source/WebKit/WebProcess/WebPage/WebPage.messages.in:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/LoadAndDecodeImage.mm:
(TestWebKitAPI::TEST(WebKit, CreateIconDataFromImageData)):
Canonical link: https://commits.webkit.org/285530@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list