Add timestamp to notifications of rendering engine and avoid race conditions in ASRangeControllerBeta

- Accurately remove notification observer
This commit is contained in:
Huy Nguyen
2016-02-04 13:59:43 -08:00
parent 3c135788cb
commit fda9efafa6
3 changed files with 22 additions and 9 deletions

View File

@@ -38,6 +38,7 @@ typedef NS_OPTIONS(NSUInteger, ASDisplayNodeMethodOverrides)
@class _ASDisplayNodePosition;
FOUNDATION_EXPORT NSString * const ASRenderingEngineDidDisplayScheduledNodesNotification;
FOUNDATION_EXPORT NSString * const ASRenderingEngineDidDisplayNodesScheduledBeforeTimestamp;
// Allow 2^n increments of begin disabling hierarchy notifications
#define VISIBILITY_NOTIFICATIONS_DISABLED_BITS 4