I've been reading about the critical rendering path in chrome here and here. My understanding from these resources is that the "Compositing" step happens off the main thread, and is dependant on the previous "Paint" step which produces the rasterized layers to be composited together.
However, when I look at what is happening during a single frame of a position animation in Chrome dev-tools I see this:
- It looks like "Compositing" is happening on the main thread, which is not what I understood from reading these resources.
- There is a paint step on the main thread before compositing, but then there is another "Rasterize Paint" step after compositing on a "Rasterizer Thread".
So what is the difference between "Paint" and "Rasterize Paint", and why does the rasterize paint step happen after compositing is already complete? And why does compositing appear to happen on the main thread in chrome dev-tools but the docs describe it as happening on a different thread?
According to this article :
Rasterization is also the action of converting a vectorial image into a pixel matrix.