Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Apple suggested to this new API on iOS 10+. > // Any new bitmap drawing code is encouraged to use UIGraphicsImageRenderer in lieu of this API. WWDC18 Reference: https://developer.apple.com/videos/play/wwdc2018/219/ > Use UIGraphicsImageRenderer to create and draw to an image buffer Supports Wide Color, unlike UIGraphicsBeginImageContext() Combine with UIImageView for efficient offscreen rendering Per https://nshipster.com/image-resizing/#performance-benchmarks, the new API runs even faster than the C version, probably due to more smart context reuses/management. Changelog: [iOS][Changed] - Adopt UIGraphicsImageRenderer API Reviewed By: philIip Differential Revision: D35699584 fbshipit-source-id: 7a1e2109d5e121fb396c1014f4ed0a892211b0cc
- Loading branch information