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:
Garrett Moon 2017-03-01 10:57:18 -08:00 committed by Adlai Holler
parent a08d9dc732
commit 06b0cba68d

View File

@ -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)