[webkit-changes] [WebKit/WebKit] 274d47: GPU Process spends time decoding DestinationColorS...

Kimmo Kinnunen noreply at github.com
Mon Mar 27 02:40:32 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 274d47f99ab8deedfaadb83d67f96d87efaffe82
      https://github.com/WebKit/WebKit/commit/274d47f99ab8deedfaadb83d67f96d87efaffe82
  Author: Kimmo Kinnunen <kkinnunen at apple.com>
  Date:   2023-03-27 (Mon, 27 Mar 2023)

  Changed paths:
    M Source/WebCore/platform/graphics/cg/ColorSpaceCG.h
    M Source/WebKit/Shared/cf/ArgumentCodersCF.cpp

  Log Message:
  -----------
  GPU Process spends time decoding DestinationColorSpace on Cocoa
https://bugs.webkit.org/show_bug.cgi?id=254406
rdar://107183239

Reviewed by Simon Fraser.

Decode CGColorSpaceRef via the WebCore::ColorSpace enum if possible.
This avoids slower CFStringRef, CFPropertyListRef encodings.

* Source/WebCore/platform/graphics/cg/ColorSpaceCG.h:
(WebCore::cachedNullableCGColorSpace):
* Source/WebKit/Shared/cf/ArgumentCodersCF.cpp:
(IPC::ArgumentCoder<CGColorSpaceRef>::encode):
(IPC::ArgumentCoder<RetainPtr<CGColorSpaceRef>>::decode):

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




More information about the webkit-changes mailing list