[webkit-changes] [WebKit/WebKit] 8d1500: [Cocoa] Enable HEIC

Myles C. Maxfield noreply at github.com
Wed Jun 7 19:17:16 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8d15007530ba97cafde25c94d23e3ec6bb6dafe4
      https://github.com/WebKit/WebKit/commit/8d15007530ba97cafde25c94d23e3ec6bb6dafe4
  Author: Myles C. Maxfield <mmaxfield at apple.com>
  Date:   2023-06-07 (Wed, 07 Jun 2023)

  Changed paths:
    M LayoutTests/fast/canvas/toDataURL-unsupportedTypes-expected.txt
    M LayoutTests/fast/canvas/toDataURL-unsupportedTypes.html
    M LayoutTests/fast/forms/file/entries-api/image-no-transcode-drag-drop-expected.txt
    M LayoutTests/fast/forms/file/entries-api/image-no-transcode-open-panel-expected.txt
    M LayoutTests/fast/images/animated-heics-draw.html
    M LayoutTests/fast/images/animated-heics-verify.html
    M LayoutTests/fast/images/heic-as-background-image.html
    M LayoutTests/http/tests/misc/heic-accept-header.html
    M Source/WTF/wtf/PlatformHave.h
    M Source/WebCore/loader/cache/CachedResourceRequest.cpp
    M Source/WebCore/platform/MIMETypeRegistry.cpp
    M Source/WebCore/platform/graphics/cg/UTIRegistry.cpp

  Log Message:
  -----------
  [Cocoa] Enable HEIC
https://bugs.webkit.org/show_bug.cgi?id=257763
rdar://110346646

Reviewed by Said Abou-Hallawa.

There are 3 reasons to enable it:
1. HEIC uses the same technology as H.265 videos, which are already enabled by default in
       many (most? almost all?) major browsers. So there is no concern about increasing
       the surface area of new technology on the web.
2. It's just a true fact that there are just a lot of HEIC images out there in the wild.
       Some of them end up on the internet. You can't stop them. It just happens.
3. Apple's devices have hardware decoders for HEIC, which make them both more performant
       and use less energy than other image formats. Running some tests, using hardware
       decoding HEIC images uses 26% less power and 13% less time than using software
       decoding of AVIF, for (roughly) equivalent quality images.

* Source/WTF/wtf/PlatformHave.h:
* Source/WebCore/loader/cache/CachedResourceRequest.cpp:
(WebCore::acceptHeaderValueForHEICImageResource):
(WebCore::acceptHeaderValueForImageResource):
* Source/WebCore/platform/MIMETypeRegistry.cpp:
* Source/WebCore/platform/graphics/cg/UTIRegistry.cpp:
(WebCore::defaultSupportedImageTypes):

Canonical link: https://commits.webkit.org/264971@main




More information about the webkit-changes mailing list