mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-04 20:00:53 +00:00
It doesn't appear that this method needs to be protected by thread affinity? It has locking and is backed by an ivar, not UIKit. (#3107)
This commit is contained in:
parent
a08d9dc732
commit
06b0cba68d
@ -1905,7 +1905,6 @@ NSString * const ASRenderingEngineDidDisplayNodesScheduledBeforeTimestamp = @"AS
|
||||
|
||||
- (CGFloat)contentsScaleForDisplay
|
||||
{
|
||||
ASDisplayNodeAssertThreadAffinity(self);
|
||||
ASDN::MutexLocker l(__instanceLock__);
|
||||
|
||||
return _contentsScaleForDisplay;
|
||||
@ -1913,7 +1912,6 @@ NSString * const ASRenderingEngineDidDisplayNodesScheduledBeforeTimestamp = @"AS
|
||||
|
||||
- (void)setContentsScaleForDisplay:(CGFloat)contentsScaleForDisplay
|
||||
{
|
||||
ASDisplayNodeAssertThreadAffinity(self);
|
||||
ASDN::MutexLocker l(__instanceLock__);
|
||||
|
||||
if (_contentsScaleForDisplay == contentsScaleForDisplay)
|
||||
|
Loading…
x
Reference in New Issue
Block a user