Skip to content
Permalink
Browse files
Adopt new function to set video decoder behavior
https://bugs.webkit.org/show_bug.cgi?id=241603

Reviewed by Geoffrey Garen.

The only behavior change from this is that common video decoders will not be permitted in the WebContent process.

* Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::WebProcess::platformInitializeWebProcess):

Canonical link: https://commits.webkit.org/251693@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295688 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
pvollan committed Jun 21, 2022
1 parent d02e992 commit 5a290033d2596799712178a6ac8bc9303b750f58
Showing 1 changed file with 1 addition and 1 deletion.
@@ -273,7 +273,7 @@ static void softlinkDataDetectorsFrameworks()
#if USE(APPLE_INTERNAL_SDK)
if (parameters.enableDecodingHEIC) {
ImageDecoderCG::enableDecodingHEIC();
enableDecodingHEIC();
setVideoDecoderBehaviors({ VideoDecoderBehavior::AvoidIOSurface, VideoDecoderBehavior::AvoidHardware, VideoDecoderBehavior::EnableHEIC });
}
#endif
#endif // HAVE(VIDEO_RESTRICTED_DECODING)

0 comments on commit 5a29003

Please sign in to comment.