Bug 187175

Summary: [WPE] Some frames are dropped when using rAF to animate an element
Product: WebKit Reporter: Miguel Gomez <magomez>
Component: WPE WebKitAssignee: Miguel Gomez <magomez>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, calvaris, commit-queue, zan
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
testcase
none
Patch none

Description Miguel Gomez 2018-06-29 05:00:26 PDT
Created attachment 343907 [details]
testcase

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
1-2-3-4-5-6
we're rendering
1-1-2-4-4-5-7-7

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]
Patch
Comment 2 WebKit Commit Bot 2018-06-29 06:52:30 PDT
Comment on attachment 343910 [details]
Patch

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.