mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[ASDisplayNode] Pass drawParameter in rendering context callbacks (#248)
* Pass drawParameter in rendering context callbacks * Add changelog * Fix examples
This commit is contained in:
committed by
GitHub
parent
ad9924abd8
commit
8692428481
@@ -251,7 +251,7 @@
|
||||
// For -display methods, we don't have a context, and thus will not call the _willDisplayNodeContentWithRenderingContext or
|
||||
// _didDisplayNodeContentWithRenderingContext blocks. It's up to the implementation of -display... to do what it needs.
|
||||
if (willDisplayNodeContentWithRenderingContext != nil) {
|
||||
willDisplayNodeContentWithRenderingContext(currentContext);
|
||||
willDisplayNodeContentWithRenderingContext(currentContext, drawParameters);
|
||||
}
|
||||
|
||||
// Decide if we use a class or instance method to draw or display.
|
||||
@@ -266,7 +266,7 @@
|
||||
}
|
||||
|
||||
if (didDisplayNodeContentWithRenderingContext != nil) {
|
||||
didDisplayNodeContentWithRenderingContext(currentContext);
|
||||
didDisplayNodeContentWithRenderingContext(currentContext, drawParameters);
|
||||
}
|
||||
|
||||
if (shouldCreateGraphicsContext) {
|
||||
|
||||
Reference in New Issue
Block a user