react-native-macos/React
Chaoshuai Lu d70d7fd0b3 Adopt UIGraphicsImageRenderer API
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
2022-04-22 17:02:51 -07:00
..
AccessibilityResources/en.lproj VoiceOver reads Tab elements as "Tab Description" (#30689) 2021-01-15 11:09:01 -08:00
AppSetup Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
Base Add MC to test disabling React Native invalidation under memory pressure 2022-04-20 10:59:57 -07:00
CoreModules add casts for implicit int to float 2022-04-21 12:18:53 -07:00
CxxBridge Add MC to test disabling React Native invalidation under memory pressure 2022-04-20 10:59:57 -07:00
CxxLogUtils Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
CxxModule Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
CxxUtils Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
DevSupport Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
FBReactNativeSpec bump iOS and tvOS from 11.0 to 12.4 in cocoapods 2022-03-16 21:08:01 -07:00
Fabric Back out "Pass mutation list to RCTMountingTransactionObserving callbacks" 2022-04-21 16:27:57 -07:00
Inspector Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
Modules (Easy) Add RCTNotAllowedInAppWideFabric validation to the only static method in RCTUIManager, JSResponder 2022-04-18 18:57:40 -07:00
Profiler Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
Tests Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
UIUtils Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
Views Adopt UIGraphicsImageRenderer API 2022-04-22 17:02:51 -07:00
React-RCTFabric.podspec bump iOS and tvOS from 11.0 to 12.4 in cocoapods 2022-03-16 21:08:01 -07:00
third-party.xcconfig Bump boost for Android to 1.76 to align with iOS + fix (#33565) 2022-04-07 04:50:30 -07:00