-
Notifications
You must be signed in to change notification settings - Fork 1.6k
REGRESSION(295899@main): Video as an image source does not display its frames #47221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
webkit-commit-queue
merged 1 commit into
WebKit:main
from
shallawa:eng/REGRESSION-295899-main-Video-as-an-image-source-does-not-display-its-frames
Jun 26, 2025
Merged
REGRESSION(295899@main): Video as an image source does not display its frames #47221
webkit-commit-queue
merged 1 commit into
WebKit:main
from
shallawa:eng/REGRESSION-295899-main-Video-as-an-image-source-does-not-display-its-frames
Jun 26, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
EWS run on previous version of this PR (hash 65cc5ee) |
65cc5ee
to
41e20ff
Compare
EWS run on previous version of this PR (hash 41e20ff) |
41e20ff
to
fdf49a6
Compare
EWS run on previous version of this PR (hash fdf49a6) |
modified |
smfr
approved these changes
Jun 26, 2025
fdf49a6
to
f751b47
Compare
EWS run on current version of this PR (hash f751b47) |
…s frames https://bugs.webkit.org/show_bug.cgi?id=295015 rdar://154358072 Reviewed by Simon Fraser. Three bugs are the cause of this regression: 1. Headroom constructor is not explicit. So any numerical value including `bool` can construct a Headroom structure. 2. A new argument to ShareableBitmapConfiguration of type Headroom was added in 295899@main. RemoteImageDecoderAVFProxy::createFrameImageAtIndex() was not modified to include a headroom when calling ShareableBitmap::create(). Instead a `bool` false was passed instead. This `bool` constructs a Headroom of type Headroom::FromImage which is very special value and should not be passed from WebProcess to GPUProcess or vice versa. 3. In 295899@main ShareableBitmap::createCGImage() was changed such that it calls CGImageCreateWithContentHeadroom() if m_configuration.headroom() != Headroom::None. This code is now hit in the video scenario because RemoteImageDecoderAVFProxy ::createFrameImageAtIndex() passes the wrong Headroom. The fix is to: 1. Make the constructor of Headroom explicit so we do not hit this bug again. 2. Make RemoteImageDecoderAVFProxy::createFrameImageAtIndex() pass the headroom of the decoded image to ShareableBitmap::create(). 3. Assert in ShareableBitmap and ShareableBitmapConfiguration that the passed headroom has a valid Headroom value. * LayoutTests/TestExpectations: * LayoutTests/fast/images/resources/red-green-blue.mov: Added. * LayoutTests/fast/images/video-as-image-expected.html: Added. * LayoutTests/fast/images/video-as-image.html: Added. * LayoutTests/platform/ios/TestExpectations: * LayoutTests/platform/mac/TestExpectations: * Source/WebCore/page/Page.cpp: (WebCore::Page::updateDisplayEDRHeadroom): * Source/WebCore/platform/graphics/ImageTypes.h: (WebCore::Headroom::Headroom): * Source/WebCore/platform/graphics/ShareableBitmap.cpp: (WebCore::ShareableBitmapConfiguration::ShareableBitmapConfiguration): (WebCore::ShareableBitmap::create): (WebCore::ShareableBitmap::ShareableBitmap): * Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContextCG::drawNativeImageInternal): * Source/WebCore/platform/graphics/cg/NativeImageCG.cpp: (WebCore::PlatformImageNativeImageBackend::headroom const): * Source/WebCore/platform/graphics/cg/ShareableBitmapCG.mm: (WebCore::ShareableBitmap::createCGImage const): * Source/WebKit/GPUProcess/media/RemoteImageDecoderAVFProxy.cpp: (WebKit::RemoteImageDecoderAVFProxy::createFrameImageAtIndex): * Source/WebKit/WebProcess/GPU/graphics/RemoteDisplayListRecorderProxy.cpp: (WebKit::RemoteDisplayListRecorderProxy::drawNativeImageInternal): Canonical link: https://commits.webkit.org/296680@main
f751b47
to
f5b453a
Compare
Committed 296680@main (f5b453a): https://commits.webkit.org/296680@main Reviewed commits have been landed. Closing PR #47221 and removing active labels. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
f5b453a
f751b47
🛠 win🧪 win-tests🧪 ios-wk2-wpt🧪 mac-AS-debug-wk2🧪 gtk-wk2🧪 api-gtk🛠 playstation