mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Upgrade SpaceWarpNode
This commit is contained in:
parent
955d69472c
commit
2a317d87d2
7 changed files with 486 additions and 56 deletions
|
|
@ -33,6 +33,7 @@ NSObject * _Nullable makeVariableBlurFilter();
|
|||
NSObject * _Nullable makeLuminanceToAlphaFilter();
|
||||
NSObject * _Nullable makeColorInvertFilter();
|
||||
NSObject * _Nullable makeMonochromeFilter();
|
||||
NSObject * _Nullable makeDisplacementMapFilter();
|
||||
|
||||
void setLayerDisableScreenshots(CALayer * _Nonnull layer, bool disableScreenshots);
|
||||
bool getLayerDisableScreenshots(CALayer * _Nonnull layer);
|
||||
|
|
|
|||
|
|
@ -282,6 +282,14 @@ NSObject * _Nullable makeMonochromeFilter() {
|
|||
return [(id<GraphicsFilterProtocol>)NSClassFromString(@"CAFilter") filterWithName:@"colorMonochrome"];
|
||||
}
|
||||
|
||||
NSObject * _Nullable makeDisplacementMapFilter() {
|
||||
if (@available(iOS 26.0, *)) {
|
||||
return [(id<GraphicsFilterProtocol>)NSClassFromString(@"CAFilter") filterWithName:@"displacementMap"];
|
||||
} else {
|
||||
return nil;
|
||||
}
|
||||
}
|
||||
|
||||
static const void *layerDisableScreenshotsKey = &layerDisableScreenshotsKey;
|
||||
|
||||
void setLayerDisableScreenshots(CALayer * _Nonnull layer, bool disableScreenshots) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue