Changeset 295688 in webkit


Ignore:
Timestamp:
Jun 21, 2022 2:06:40 PM (2 years ago)
Author:
pvollan@apple.com
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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm

    r295560 r295688  
    274274    if (parameters.enableDecodingHEIC) {
    275275        ImageDecoderCG::enableDecodingHEIC();
    276         enableDecodingHEIC();
     276        setVideoDecoderBehaviors({ VideoDecoderBehavior::AvoidIOSurface, VideoDecoderBehavior::AvoidHardware, VideoDecoderBehavior::EnableHEIC });
    277277    }
    278278#endif
Note: See TracChangeset for help on using the changeset viewer.