Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 5a29003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm
Expand Up @@ -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)
Expand Down

0 comments on commit 5a29003

Please sign in to comment.