Skip to content
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

Rendering artifacts when presenting fullscreen video #5883

Merged
merged 1 commit into from Nov 2, 2022

Conversation

pxlcoder
Copy link
Member

@pxlcoder pxlcoder commented Oct 28, 2022

7df587c

Rendering artifacts when presenting fullscreen video
https://bugs.webkit.org/show_bug.cgi?id=247155
rdar://101352957

Reviewed by Tim Horton.

* Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm:
(-[WKFullScreenWindowController enterFullScreen:]):

Floor the values in the target size, as the window dimensions need to be integral values.

(-[WKFullScreenWindowController beganEnterFullScreenWithInitialFrame:finalFrame:]):
(-[WKFullScreenWindowController beganExitFullScreenWithInitialFrame:finalFrame:]):

Canonical link: https://commits.webkit.org/256251@main

2a8f3ff

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe
βœ… πŸ›  ios-sim βœ… πŸ›  mac-debug βœ… πŸ›  gtk βœ… πŸ›  wincairo
βœ… πŸ§ͺ webkitperl βœ… πŸ§ͺ ios-wk2 βœ… πŸ›  mac-AS-debug βœ… πŸ§ͺ gtk-wk2
βœ… πŸ§ͺ api-ios βœ… πŸ§ͺ api-mac βœ… πŸ§ͺ api-gtk
βœ… πŸ›  tv βœ… πŸ§ͺ mac-wk1
βœ… πŸ›  tv-sim βœ… πŸ§ͺ mac-wk2
βœ… πŸ›  πŸ§ͺ merge βœ… πŸ›  watch βœ… πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  watch-sim βœ… πŸ§ͺ mac-wk2-stress

@pxlcoder pxlcoder requested a review from cdumez as a code owner October 28, 2022 00:05
@pxlcoder pxlcoder self-assigned this Oct 28, 2022
@pxlcoder pxlcoder added New Bugs Unclassified bugs are placed in this component until the correct component can be determined. Other labels Oct 28, 2022
@@ -577,7 +577,7 @@ - (void)enterFullScreen:(CGSize)videoDimensions
targetWidth = videoDimensions.width * preferredHeight / videoDimensions.height;
}

[_window setFrame:CGRectMake(0, 0, targetWidth, targetHeight)];
[_window setFrame:CGRectMake(0, 0, floorf(targetWidth), floorf(targetHeight))];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there some preference for std::floor? (I have no idea)

@pxlcoder pxlcoder added the merge-queue Applied to send a pull request to merge-queue label Nov 2, 2022
https://bugs.webkit.org/show_bug.cgi?id=247155
rdar://101352957

Reviewed by Tim Horton.

* Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm:
(-[WKFullScreenWindowController enterFullScreen:]):

Floor the values in the target size, as the window dimensions need to be integral values.

(-[WKFullScreenWindowController beganEnterFullScreenWithInitialFrame:finalFrame:]):
(-[WKFullScreenWindowController beganExitFullScreenWithInitialFrame:finalFrame:]):

Canonical link: https://commits.webkit.org/256251@main
@webkit-commit-queue
Copy link
Collaborator

Committed 256251@main (7df587c): https://commits.webkit.org/256251@main

Reviewed commits have been landed. Closing PR #5883 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit 7df587c into WebKit:main Nov 2, 2022
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Bugs Unclassified bugs are placed in this component until the correct component can be determined.
Projects
None yet
4 participants