Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upScriptToCompositorMsg messages should probably be sent to the constellation instead #11345
Comments
|
So ultimately I think that there should be multiple compositors, when we have multiple windows. But that's orthogonal to this proposal. I think you're absolutely right; these should be constellation messages. |
|
As in they should be sent to the constellation, then sent to the compositor? Why? |
|
In case the page is in an iframe or in a background tab, etc, I would think. |
Ms2ger
added a commit
to Ms2ger/servo
that referenced
this issue
May 25, 2016
We needed a separate thread in the chrome process because communication to the compositor is done through a trait object, and cross-process virtual calls are forbidden. Also, the fact that these messages are ultimately handled by the compositor is an implementation detail; conceptually, the relevant constellation is supposed to handle these messages. So instead, the script thread will now send the messages to the constellation, which will ask the compositor to handle them.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CC @pcwalton @glennw @larsbergstrom
This is assuming the compositor should be a global structure rather than per-top-level-browsing-context; correct me if that's wrong.
None of these seem like they should be global: