开发者

32-bit Flash player in 64-bit Safari: how?

开发者 https://www.devze.com 2023-01-23 00:32 出处:网络
Yes, I know, WebKit uses a separate 32-bit process to play Flash and communicate with it. But how does Flash draw in a browser? In Mac OS X you cannot draw on a foreign window or reparent your one.

Yes, I know, WebKit uses a separate 32-bit process to play Flash and communicate with it.

But how does Flash draw in a browser? In Mac OS X you cannot draw on a foreign window or reparent your one.

So if the Flash player hosts in another process, how can it obta开发者_StackOverflow中文版in the browser window's context (CGContextRef) and be drawn in it?


I haven't seen the source, so I don't know, but I believe that the flash process just draws into a memory buffer (like drawing into an NSImage, etc.) which is transfered to Safari using interprocess communication. It may be fancier than that (with shared memory, etc.), but that's the gist of it.

0

精彩评论

暂无评论...
验证码 换一张
取 消