Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f3003a32e6db0690d78963c660c349250fc56657
      
https://github.com/WebKit/WebKit/commit/f3003a32e6db0690d78963c660c349250fc56657
  Author: Simon Fraser <[email protected]>
  Date:   2025-04-26 (Sat, 26 Apr 2025)

  Changed paths:
    M Source/WebCore/platform/graphics/PathStream.cpp
    M Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h

  Log Message:
  -----------
  Add some inline vector capacity in hot code paths
https://bugs.webkit.org/show_bug.cgi?id=292101
rdar://150112205

Reviewed by Yusuke Suzuki.

`PathStream(PathSegment&&)` is called when we convert a single-segment path to 
a two-segment path,
so it makes sense to expand the Vector to its default min capacity up-front.

* Source/WebCore/platform/graphics/PathStream.cpp:
(WebCore::PathStream::PathStream):
* Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h: Add inline capacity to 
repaint rects.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to