-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
1 parent
7454044
commit d70d7fd
Showing
6 changed files
with
270 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.