Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
ThreadedCoordinatedLayerTreeHost::renderNextFrame() should short-cut …
…to layer flushing https://bugs.webkit.org/show_bug.cgi?id=157614 Reviewed by Carlos Garcia Campos. CoordinatedLayerTreeHost prevents any layer flushes while a previously-commited scene state is still being rendered on the composition thread. renderNextFrame() is called once that is complete, and a new layer flush is scheduled. This change improves the whole ordeal by immediately performing the layer flush only if it was requested during the time we were waiting on the renderer (i.e. when the latest scene state was being composited), instead of scheduling it unconditionally. m_scheduledWhileWaitingForRenderer member variable is added to track that occurrence. * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp: (WebKit::CoordinatedLayerTreeHost::scheduleLayerFlush): (WebKit::CoordinatedLayerTreeHost::renderNextFrame): * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h: Canonical link: https://commits.webkit.org/183990@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@210545 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information