[webkit-changes] [WebKit/WebKit] ea2dd1: Remove the extra string allocation in RemoteLayerT...

Charlie Wolfe noreply at github.com
Tue Aug 1 00:51:22 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ea2dd1db499db3e958418d462bc62b51aa1c1ba4
      https://github.com/WebKit/WebKit/commit/ea2dd1db499db3e958418d462bc62b51aa1c1ba4
  Author: Charlie Wolfe <charliew at apple.com>
  Date:   2023-08-01 (Tue, 01 Aug 2023)

  Changed paths:
    M Source/WebCore/platform/ProcessQualified.h
    M Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeDrawingArea.mm

  Log Message:
  -----------
  Remove the extra string allocation in RemoteLayerTreeDrawingArea::addRootFrame()
https://bugs.webkit.org/show_bug.cgi?id=259652
rdar://113145706

Reviewed by Alex Christensen.

Introduce StringTypeAdapter to WebCore::ProcessQualified to remove the extra allocation.

* Source/WebCore/platform/ProcessQualified.h:
(WTF::ProcessQualifiedStringTypeAdapter::length const):
(WTF::ProcessQualifiedStringTypeAdapter::is8Bit const):
(WTF::ProcessQualifiedStringTypeAdapter::writeTo const):
(WTF::ProcessQualifiedStringTypeAdapter::ProcessQualifiedStringTypeAdapter):

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




More information about the webkit-changes mailing list