I thought there won’t be any cross-process texture sharing on macOS anymore?
-
-
It uses surfaces as a way to safely share send texture data between threads. Happier?
1 reply 0 retweets 0 likes -
Replying to @asajeffrey @pcwalton and
Oh cross threads! Ok that makes more sense.
1 reply 0 retweets 0 likes -
Servo makes sure that any threads using the GPU are all in the same process. There might be clever way to get surfaces sent between processes, but we're not using it.
1 reply 0 retweets 0 likes -
Replying to @asajeffrey @pcwalton and
There are definitely support for IPC surfaces in the serde serialisation stuff, and we mark surfaces on macOS global for that very purpose. Glad to know we don’t actually use that though.
1 reply 0 retweets 0 likes -
Replying to @nokusu @asajeffrey and
There are ways to send surfaces cross-process on each OS. In fact, they're basically the same ways surfman sends them across threads. They require some extra APIs surfman doesn't use yet, though. e.g. on macOS you can convert an IOSurface to a Mach port and back.
2 replies 0 retweets 0 likes -
Replying to @pcwalton @asajeffrey and
Anthony Ramine Retweeted Patrick Walton
Didn't you tell me we won't do that anymore, because we need to make the surfaces global so that any process can access them, if we don't use XPC services on macOS? Did I misunderstand something?https://twitter.com/pcwalton/status/1172905803524653056 …
Anthony Ramine added,
1 reply 0 retweets 0 likes -
Replying to @nokusu @asajeffrey and
There's an API to convert a surface to a Mach port and back, as I recall. I believe XPC services is built on Mach ports anyway.
1 reply 0 retweets 0 likes -
Replying to @pcwalton @asajeffrey and
AFAIK to be able to use Mach ports that way, you need to go through XPC or make the thing global.
1 reply 0 retweets 0 likes -
1 reply 0 retweets 0 likes
Yes, that's a security problem in Firefox.
-
-
Replying to @pcwalton @asajeffrey and
Glad we had this discussion because I think I was 100% convinced the only way to do secure surface IPC was through XPC. For the past 2 years.
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.