[webkit-changes] [WebKit/WebKit] a793b6: FontCustomPlatformSerializedData shouldn't copy fo...

Fujii Hironori noreply at github.com
Fri Dec 6 17:08:24 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a793b6dee90dcc7ecde5dab788d92b679f25adc9
      https://github.com/WebKit/WebKit/commit/a793b6dee90dcc7ecde5dab788d92b679f25adc9
  Author: Fujii Hironori <Hironori.Fujii at sony.com>
  Date:   2024-12-06 (Fri, 06 Dec 2024)

  Changed paths:
    M Source/WebCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations
    M Source/WebCore/platform/graphics/FontCustomPlatformData.h
    M Source/WebCore/platform/graphics/coretext/FontCustomPlatformDataCoreText.cpp
    M Source/WebCore/platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
    M Source/WebCore/platform/graphics/skia/FontCustomPlatformDataSkia.cpp
    M Source/WebCore/platform/graphics/win/FontCustomPlatformDataWin.cpp
    M Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.serialization.in
    M Source/WebKit/Shared/WebCoreFont.serialization.in
    M Source/WebKit/Shared/cairo/WebCoreFontCairo.serialization.in
    M Source/WebKit/Shared/skia/WebCoreArgumentCodersSkia.serialization.in

  Log Message:
  -----------
  FontCustomPlatformSerializedData shouldn't copy fontFaceData buffer
https://bugs.webkit.org/show_bug.cgi?id=284146

Reviewed by Alex Christensen.

It doesn't need to copy the buffer. Use `Ref<SharedBuffer>` instead of
`Vector<uint8_t>` for fontFaceData.

* Source/WebCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations:
* Source/WebCore/platform/graphics/FontCustomPlatformData.h:
* Source/WebCore/platform/graphics/coretext/FontCustomPlatformDataCoreText.cpp:
(WebCore::FontCustomPlatformData::tryMakeFromSerializationData):
(WebCore::FontCustomPlatformData::serializedData const):
* Source/WebCore/platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp:
(WebCore::FontCustomPlatformData::serializedData const):
* Source/WebCore/platform/graphics/skia/FontCustomPlatformDataSkia.cpp:
(WebCore::FontCustomPlatformData::tryMakeFromSerializationData):
(WebCore::FontCustomPlatformData::serializedData const):
* Source/WebCore/platform/graphics/win/FontCustomPlatformDataWin.cpp:
(WebCore::FontCustomPlatformData::tryMakeFromSerializationData):
(WebCore::FontCustomPlatformData::serializedData const):
* Source/WebKit/Shared/Cocoa/WebCoreArgumentCodersCocoa.serialization.in:
* Source/WebKit/Shared/WebCoreFont.serialization.in:
* Source/WebKit/Shared/cairo/WebCoreFontCairo.serialization.in:
* Source/WebKit/Shared/skia/WebCoreArgumentCodersSkia.serialization.in:

Canonical link: https://commits.webkit.org/287480@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