Implement thread-safe bounds and use it in ASTextNode

This commit is contained in:
Huy Nguyen
2016-03-02 22:42:53 -08:00
parent edd567a91d
commit 9162d7b2df
5 changed files with 32 additions and 6 deletions

View File

@@ -116,7 +116,8 @@ FOUNDATION_EXPORT NSString * const ASRenderingEngineDidDisplayNodesScheduledBefo
ASDisplayNodeDidLoadBlock _nodeLoadedBlock;
Class _viewClass;
Class _layerClass;
BOOL _usesDisplayView;
UIImage *_placeholderImage;
CALayer *_placeholderLayer;
@@ -145,6 +146,8 @@ FOUNDATION_EXPORT NSString * const ASRenderingEngineDidDisplayNodesScheduledBefo
// Bitmask to check which methods an object overrides.
@property (nonatomic, assign, readonly) ASDisplayNodeMethodOverrides methodOverrides;
@property (nonatomic, assign) CGRect threadSafeBounds;
// Swizzle to extend the builtin functionality with custom logic
- (BOOL)__shouldLoadViewOrLayer;