Title: [295688] trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm
Revision
295688
Author
pvol...@apple.com
Date
2022-06-21 14:06:40 -0700 (Tue, 21 Jun 2022)

Log Message

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

Modified Paths

Diff

Modified: trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm (295687 => 295688)


--- trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm	2022-06-21 16:22:18 UTC (rev 295687)
+++ trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm	2022-06-21 21:06:40 UTC (rev 295688)
@@ -273,7 +273,7 @@
 #if USE(APPLE_INTERNAL_SDK)
     if (parameters.enableDecodingHEIC) {
         ImageDecoderCG::enableDecodingHEIC();
-        enableDecodingHEIC();
+        setVideoDecoderBehaviors({ VideoDecoderBehavior::AvoidIOSurface, VideoDecoderBehavior::AvoidHardware, VideoDecoderBehavior::EnableHEIC });
     }
 #endif
 #endif // HAVE(VIDEO_RESTRICTED_DECODING)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to