Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimization opportunity using CAPortalLayer #1872

Open
adamwulf opened this issue Jul 1, 2019 · 0 comments
Open

Optimization opportunity using CAPortalLayer #1872

adamwulf opened this issue Jul 1, 2019 · 0 comments

Comments

@adamwulf
Copy link
Owner

adamwulf commented Jul 1, 2019

https://medium.com/@avaidyam/caportallayer-7fc81e4fb385

What these properties allow you to do is “portal” a layer from any process whose context you know of - just like with `CAPluginLayer`. Just send the `CAContext.contextId` over the wire from a friendly process and it’ll render. Unlike `CALayerHost` et al. however, the originating layer will also render on-screen (unless `hidesSourceLayer` is true). How do you get the `sourceLayerRenderId` you might ask? Here’s the function prototype: `NSUInteger CALayerGetRenderId(CALayer *);` – it won’t be hard.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant