mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-10 22:45:16 +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
|
- (CGFloat)contentsScaleForDisplay
|
||||||
{
|
{
|
||||||
ASDisplayNodeAssertThreadAffinity(self);
|
|
||||||
ASDN::MutexLocker l(__instanceLock__);
|
ASDN::MutexLocker l(__instanceLock__);
|
||||||
|
|
||||||
return _contentsScaleForDisplay;
|
return _contentsScaleForDisplay;
|
||||||
@ -1913,7 +1912,6 @@ NSString * const ASRenderingEngineDidDisplayNodesScheduledBeforeTimestamp = @"AS
|
|||||||
|
|
||||||
- (void)setContentsScaleForDisplay:(CGFloat)contentsScaleForDisplay
|
- (void)setContentsScaleForDisplay:(CGFloat)contentsScaleForDisplay
|
||||||
{
|
{
|
||||||
ASDisplayNodeAssertThreadAffinity(self);
|
|
||||||
ASDN::MutexLocker l(__instanceLock__);
|
ASDN::MutexLocker l(__instanceLock__);
|
||||||
|
|
||||||
if (_contentsScaleForDisplay == contentsScaleForDisplay)
|
if (_contentsScaleForDisplay == contentsScaleForDisplay)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user