> On 9 Jun 2016, at 7:39 PM, Jeff Szuhay <j...@szuhay.org> 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com