Code gets more understandable when TiledCoreAnimationDrawingArea simply uses RunLoopObserver directly for flush scheduling. LayerFlushScheduler can be later moved to WK1.
Created attachment 353364 [details] patch
Comment on attachment 353364 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=353364&action=review > Source/WebKit/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:901 > + if (layerTreeStateIsFrozen()) Should this just go inside flushLayers()?
Comment on attachment 353364 [details] patch Layer flushing time is going to become our "before paint" hook for firing requestAnimationFrame et (first bits of HTML5 event loop). We should work towards that goal.
Created attachment 353474 [details] patch
Comment on attachment 353474 [details] patch Clearing flags on attachment: 353474 Committed r237629: <https://trac.webkit.org/changeset/237629>
All reviewed patches have been landed. Closing bug.
<rdar://problem/45695991>