mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 19:30:29 +00:00
Merge pull request #1364 from levi/patch-9
[ASDisplayNode] Method naming - use internal underscore notation for recursivelyTriggerDisplayAndBlock
This commit is contained in:
commit
aac50320dc
@ -220,7 +220,7 @@ static ASDisplayNodeMethodOverrides GetASDisplayNodeMethodOverrides(Class c)
|
|||||||
renderQueue = [[ASRunLoopQueue<ASDisplayNode *> alloc] initWithRunLoop:CFRunLoopGetMain()
|
renderQueue = [[ASRunLoopQueue<ASDisplayNode *> alloc] initWithRunLoop:CFRunLoopGetMain()
|
||||||
andHandler:^(ASDisplayNode * _Nonnull dequeuedItem, BOOL isQueueDrained) {
|
andHandler:^(ASDisplayNode * _Nonnull dequeuedItem, BOOL isQueueDrained) {
|
||||||
CFAbsoluteTime timestamp = isQueueDrained ? CFAbsoluteTimeGetCurrent() : 0;
|
CFAbsoluteTime timestamp = isQueueDrained ? CFAbsoluteTimeGetCurrent() : 0;
|
||||||
[dequeuedItem __recursivelyTriggerDisplayAndBlock:NO];
|
[dequeuedItem _recursivelyTriggerDisplayAndBlock:NO];
|
||||||
if (isQueueDrained) {
|
if (isQueueDrained) {
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName:ASRenderingEngineDidDisplayScheduledNodesNotification
|
[[NSNotificationCenter defaultCenter] postNotificationName:ASRenderingEngineDidDisplayScheduledNodesNotification
|
||||||
object:nil
|
object:nil
|
||||||
@ -1759,7 +1759,7 @@ void recursivelyTriggerDisplayForLayer(CALayer *layer, BOOL shouldBlock)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)__recursivelyTriggerDisplayAndBlock:(BOOL)shouldBlock
|
- (void)_recursivelyTriggerDisplayAndBlock:(BOOL)shouldBlock
|
||||||
{
|
{
|
||||||
ASDisplayNodeAssertMainThread();
|
ASDisplayNodeAssertMainThread();
|
||||||
|
|
||||||
@ -1775,7 +1775,7 @@ void recursivelyTriggerDisplayForLayer(CALayer *layer, BOOL shouldBlock)
|
|||||||
|
|
||||||
- (void)recursivelyEnsureDisplaySynchronously:(BOOL)synchronously
|
- (void)recursivelyEnsureDisplaySynchronously:(BOOL)synchronously
|
||||||
{
|
{
|
||||||
[self __recursivelyTriggerDisplayAndBlock:synchronously];
|
[self _recursivelyTriggerDisplayAndBlock:synchronously];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setShouldBypassEnsureDisplay:(BOOL)shouldBypassEnsureDisplay
|
- (void)setShouldBypassEnsureDisplay:(BOOL)shouldBypassEnsureDisplay
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user