I am a frontend dev trying to understand the guts of Blink/Chrome in order to get a grasp on how the code that I write gets converted into pixels on the screen.
I have read several Chromium docs like
I am trying to correlate the findings from these sources with the findings from my own experiments. I have been able to do so for most of the things except for
1. Update layer
2. Update layer tree
3. Composite layers
These are my understanding so far. And I would like to be either validated or corrected.
Update layer
Not really sure what's going on here. Seems like part of painting. But what does it really mean?
Update layer tree
To me it seems like this is when the impl side layer tree changes are applied onto the layer tree on Blink. E.g. after scroll or pinch/zoom interactions.
I am not so sure anymore. What is exactly happening here?
Composite layers
To me this is really confusing since composition is no longer main thread concept. So why does it even appear in main thread time line.
To me it seems like this is when the main thread layer tree is committed to the compositor. This is initiated by the CC with the main thread blocked.
If this is true, it seems like "composite layers" is not a right name. It would make more sense to have "commit layers" e.g.
But maybe my assumptions are wrong.
Hope to get clarity on these subjects.
Thanks