Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 045f6aea552a211ece23f98d3af377fb8d70de91
https://github.com/WebKit/WebKit/commit/045f6aea552a211ece23f98d3af377fb8d70de91
Author: Youenn Fablet <[email protected]>
Date: 2026-09-25 (Fri, 25 Sep 2026)
Changed paths:
M Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoder.h
M Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoder.mm
M Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoderVTB.h
M Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoderVTB.mm
M Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoderVTBAV1.h
M Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoderVTBAV1.mm
M Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoderVTBH265.h
M Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoderVTBH265.mm
M Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoderVTBVP9.h
M Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoderVTBVP9.mm
M Source/WebKit/GPUProcess/webrtc/LibWebRTCCodecsProxy.mm
Log Message:
-----------
Add threading assertions to GPUVideoDecoderVTB
rdar://188272201
https://bugs.webkit.org/show_bug.cgi?id=325139
Reviewed by Jean-Yves Avenard.
Like done in GPUVideoEncoderVTB, we add threading assertion to
GPUVideoDecoderVTB.
All public APIs are expected to be called on the same work queue, which is
given at constructor time.
This allows to provide a clear understanding of the threading model.
* Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoder.h:
* Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoder.mm:
(WebCore::GPUVideoDecoder::create):
* Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoderVTB.h:
(WebCore::GPUVideoDecoderVTB::WTF_REQUIRES_CAPABILITY):
(WebCore::GPUVideoDecoderVTB::queue const):
(WebCore::GPUVideoDecoderVTB::WTF_GUARDED_BY_CAPABILITY):
(WebCore::GPUVideoDecoderVTB::width const): Deleted.
(WebCore::GPUVideoDecoderVTB::height const): Deleted.
(): Deleted.
* Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoderVTB.mm:
(WebCore::GPUVideoDecoderVTB::GPUVideoDecoderVTB):
(WebCore::GPUVideoDecoderVTB::decodeFrameInternal):
(WebCore::GPUVideoDecoderVTB::setVideoInfo):
(WebCore::GPUVideoDecoderVTB::colorSpaceOverrideChanged):
(WebCore::GPUVideoDecoderVTB::updateFormat):
(WebCore::GPUVideoDecoderVTB::flush):
(WebCore::GPUVideoDecoderVTB::setFormat):
(WebCore::GPUVideoDecoderVTB::setFrameSize):
* Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoderVTBAV1.h:
* Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoderVTBAV1.mm:
(WebCore::GPUVideoDecoderVTBAV1::GPUVideoDecoderVTBAV1):
* Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoderVTBH265.h:
* Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoderVTBH265.mm:
(WebCore::GPUVideoDecoderVTBH265::GPUVideoDecoderVTBH265):
* Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoderVTBVP9.h:
* Source/WebCore/platform/video-codecs/cocoa/GPUVideoDecoderVTBVP9.mm:
(WebCore::GPUVideoDecoderVTBVP9::GPUVideoDecoderVTBVP9):
(WebCore::GPUVideoDecoderVTBVP9::decodeFrame):
* Source/WebKit/GPUProcess/webrtc/LibWebRTCCodecsProxy.mm:
(WebKit::LibWebRTCCodecsProxy::createLocalDecoder):
Canonical link: https://commits.webkit.org/321890@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications