Re: CIImage initWithCGLayer is deprecated in 10.11
Re: CIImage initWithCGLayer is deprecated in 10.11
- Subject: Re: CIImage initWithCGLayer is deprecated in 10.11
- From: Graham Cox <email@hidden>
- Date: Thu, 09 Jun 2016 21:20:21 +1000
> On 9 Jun 2016, at 7:39 PM, Jeff Szuhay <email@hidden> wrote:
>
> Here’s the thing: I draw into a layer, then I want to apply a
> CIFilter to that layer. With initWithCGLayer deprecated, I
> can’t for the life of me figure out how to use the existing
> APIs to do what I want.
>
> The sample code — FunHouse — uses the deprecated API.
>
> So, what is the replacement?
>
Why do you draw into a CGLayer rather than a CGImage? I seem to recall that CGLayer was discouraged since it never offered any practical performance advantages over CGImage, despite all the supposed advantages listed in the documentation.
This was something I was told on this list by one of the Apple engineers, but that was a long time ago. It could have changed, but the deprecation of those APIs suggests that CGLayer is not the way to go.
—Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden