[webkit-changes] [WebKit/WebKit] 8722ec: Make Skia use bmalloc/fastMalloc
Adrian Perez
noreply at github.com
Mon Feb 26 04:27:23 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8722ec73f50ceaf96717b811b489bf3819db90a9
https://github.com/WebKit/WebKit/commit/8722ec73f50ceaf96717b811b489bf3819db90a9
Author: Adrian Perez de Castro <aperez at igalia.com>
Date: 2024-02-26 (Mon, 26 Feb 2024)
Changed paths:
M Source/ThirdParty/skia/CMakeLists.txt
M Source/WebCore/platform/graphics/skia/ImageBufferSkiaUnacceleratedBackend.cpp
A Source/WebCore/platform/skia/SkiaAllocatorFastMalloc.cpp
M Tools/ImageDiff/Skia.cmake
M Tools/Scripts/webkitpy/style/checker.py
Log Message:
-----------
Make Skia use bmalloc/fastMalloc
https://bugs.webkit.org/show_bug.cgi?id=269572
Reviewed by Carlos Garcia Campos.
Implement functions used by Skia to handle memory allocations in terms
of WTF::fastMalloc() and friends.
* Source/ThirdParty/skia/CMakeLists.txt: Build the fastMalloc allocator
instead of the system-wide one when USE_SYSTEM_MALLOC is disabled.
* Source/WebCore/platform/graphics/skia/ImageBufferSkiaUnacceleratedBackend.cpp:
(WebCore::ImageBufferSkiaUnacceleratedBackend::create): Remove FIXME
comment, allocations done by Skia now go through bmalloc/fastMalloc.
* Source/WebCore/platform/skia/SkiaAllocatorFastMalloc.cpp: Added.
(sk_abort_no_print):
(sk_out_of_memory):
(sk_free):
(sk_realloc_throw):
(sk_malloc_flags):
(sk_malloc_size):
* Tools/Scripts/webkitpy/style/checker.py: Ignore lints for include
headers and underscores in identifiers for SkiaAllocatorFastMalloc.cpp
* Tools/ImageDiff/Skia.cmake: Add logic to avoid linking ImageDiff to
WTF when Skia has the bmalloc/fastMalloc allocator support built.
Canonical link: https://commits.webkit.org/275315@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list