Bug 187175 - [WPE] Some frames are dropped when using rAF to animate an element
Summary: [WPE] Some frames are dropped when using rAF to animate an element
Alias: None
Product: WebKit
Classification: Unclassified
Component: WPE WebKit (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Miguel Gomez
Depends on:
Reported: 2018-06-29 05:00 PDT by Miguel Gomez
Modified: 2018-07-01 22:36 PDT (History)
4 users (show)

See Also:

testcase (1.14 KB, text/html)
2018-06-29 05:00 PDT, Miguel Gomez
no flags Details
Patch (2.92 KB, patch)
2018-06-29 05:43 PDT, Miguel Gomez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Gomez 2018-06-29 05:00:26 PDT
Created attachment 343907 [details]

There's a certain situation using rAF to animate an alement where the sequence of frames rendered is not the right, which causes the animation to be flickery. I'm attaching a testcase where the problem can be reproduced.

The problem is that instead of rendering the frames in the appropriate order
we're rendering

and this happens because we're triggering schedules in the ThreadedCompositor that should wait for a pending layerFlush and it's not.
Comment 1 Miguel Gomez 2018-06-29 05:43:17 PDT
Created attachment 343910 [details]
Comment 2 WebKit Commit Bot 2018-06-29 06:52:30 PDT
Comment on attachment 343910 [details]

Clearing flags on attachment: 343910

Committed r233353: <https://trac.webkit.org/changeset/233353>
Comment 3 WebKit Commit Bot 2018-06-29 06:52:32 PDT
All reviewed patches have been landed.  Closing bug.