Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2abc9bd76357f82bfa6a03743305b4f0ba10125d
https://github.com/WebKit/WebKit/commit/2abc9bd76357f82bfa6a03743305b4f0ba10125d
Author: Ahmad Saleem <[email protected]>
Date: 2026-06-29 (Mon, 29 Jun 2026)
Changed paths:
M Source/WebCore/platform/graphics/ImageBuffer.cpp
Log Message:
-----------
ImageBuffer constructor should move its Parameters instead of copying
https://bugs.webkit.org/show_bug.cgi?id=317996
rdar://180784731
Reviewed by Kimmo Kinnunen.
ImageBuffer's constructor takes ImageBufferParameters by value but then
copies it into the m_parameters member. ImageBufferParameters wraps a
ref-counted DestinationColorSpace, so the extra copy causes redundant
ref/deref churn on the color space for every off-screen buffer allocation.
Move the by-value parameter into the member instead, matching the
adjacent m_backend(WTF::move(backend)) initializer.
* Source/WebCore/platform/graphics/ImageBuffer.cpp:
(WebCore::ImageBuffer::ImageBuffer):
Canonical link: https://commits.webkit.org/316076@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications