mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Implement async transition
This commit is contained in:
@@ -331,7 +331,7 @@ static void __ASDisplayLayerDecrementConcurrentDisplayCount(BOOL displayIsAsync,
|
||||
// FIXME: what about the degenerate case where we are calling setNeedsDisplay faster than the jobs are dequeuing
|
||||
// from the displayQueue? Need to not cancel early fails from displaySentinel changes.
|
||||
ASSentinel *displaySentinel = (asynchronously ? _displaySentinel : nil);
|
||||
int64_t displaySentinelValue = [displaySentinel increment];
|
||||
int32_t displaySentinelValue = [displaySentinel increment];
|
||||
|
||||
asdisplaynode_iscancelled_block_t isCancelledBlock = ^{
|
||||
return BOOL(displaySentinelValue != displaySentinel.value);
|
||||
|
||||
Reference in New Issue
Block a user