Skip to content

[WPE][GTK] visible rect in case animations is not correctly calculated #1411

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
merged 1 commit into from
Oct 8, 2024

Conversation

pgorszkowski-igalia
Copy link

https://bugs.webkit.org/show_bug.cgi?id=280612

Reviewed by Miguel Gomez.

For animations starting partially outside the viewport were not fully rendered when the first frame entered the visible area. This caused incomplete or cut-off frames during the initial stages of the animation. The issue was more noticeable on low-end devices(RPi) or during slow-motion or frame-by-frame analysis of the recordings on x86.

With this change the visible rect is extended with the elements which are currently not fully visible but they will be in a future bacause of animations.

  • Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp: (WebCore::CoordinatedGraphicsLayer::transformedVisibleRectIncludingFuture): (WebCore::CoordinatedGraphicsLayer::updateContentBuffers): (WebCore::CoordinatedGraphicsLayer::computeTransformedVisibleRect):
  • Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:

https://bugs.webkit.org/show_bug.cgi?id=280612

Reviewed by Miguel Gomez.

For animations starting partially outside the viewport were not fully rendered when
the first frame entered the visible area. This caused incomplete or cut-off frames
during the initial stages of the animation. The issue was more noticeable on low-end
devices(RPi) or during slow-motion or frame-by-frame analysis of the recordings on x86.

With this change the visible rect is extended with the elements which are currently
not fully visible but they will be in a future bacause of animations.

* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
(WebCore::CoordinatedGraphicsLayer::transformedVisibleRectIncludingFuture):
(WebCore::CoordinatedGraphicsLayer::updateContentBuffers):
(WebCore::CoordinatedGraphicsLayer::computeTransformedVisibleRect):
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
@magomez magomez merged commit f0b98a4 into wpe-2.38 Oct 8, 2024
@magomez magomez deleted the pgorszkowski/2.38/fix_issue_1379 branch October 8, 2024 07:27
gowthami-cl-infosys added a commit to LibertyGlobal/WPEWebKit that referenced this pull request Oct 14, 2024
…lly Loading in Carousel slider.

changes taken from the upstream: WebPlatformForEmbedded#1411
gowthami-cl-infosys added a commit to LibertyGlobal/WPEWebKit that referenced this pull request Oct 21, 2024
…Fully Loading in Carousel slider

changes taken from the upstream: WebPlatformForEmbedded#1411
gowthami-cl-infosys added a commit to LibertyGlobal/WPEWebKit that referenced this pull request Oct 24, 2024
…Fully Loading in Carousel slider

changes taken from the upstream : WebPlatformForEmbedded#1411
varadharajan-v pushed a commit to LibertyGlobal/WPEWebKit that referenced this pull request Oct 25, 2024
…Fully Loading in Carousel slider

changes taken from the upstream : WebPlatformForEmbedded#1411
suresh-khurdiya-infosys pushed a commit to LibertyGlobal/WPEWebKit that referenced this pull request Nov 28, 2024
…Fully Loading in Carousel slider

changes taken from the upstream: WebPlatformForEmbedded#1411
suresh-khurdiya-infosys pushed a commit to LibertyGlobal/WPEWebKit that referenced this pull request Dec 10, 2024
…Fully Loading in Carousel slider

changes taken from the upstream: WebPlatformForEmbedded#1411
volodymyr-ogorodnik-red pushed a commit to LibertyGlobal/WPEWebKit that referenced this pull request Apr 25, 2025
…Fully Loading in Carousel slider

changes taken from the upstream: WebPlatformForEmbedded#1411
volodymyr-ogorodnik-red pushed a commit to LibertyGlobal/WPEWebKit that referenced this pull request Apr 25, 2025
…Fully Loading in Carousel slider

changes taken from the upstream: WebPlatformForEmbedded#1411
volodymyr-ogorodnik-red pushed a commit to LibertyGlobal/WPEWebKit that referenced this pull request Apr 28, 2025
…Fully Loading in Carousel slider

changes taken from the upstream: WebPlatformForEmbedded#1411
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants