mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Refactoring
This commit is contained in:
parent
1f1509a64c
commit
9c08df83a1
3 changed files with 3 additions and 16 deletions
|
|
@ -622,7 +622,7 @@ CGRect getPathNativeBoundingBox(CGPathRef _Nonnull path) {
|
|||
CGPoint scale = CGPointMake(size.width / (CGFloat)animation.size.width, size.height / (CGFloat)animation.size.height);
|
||||
context->concatenate(lottie::Transform2D::makeScale(scale.x, scale.y));
|
||||
|
||||
renderLottieRenderNode(renderNode, context, lottie::Vector2D(context->width(), context->height()), rootTransform, 1.0, false, *_bezierPathsBoundingBoxContext.get());
|
||||
//renderLottieRenderNode(renderNode, context, lottie::Vector2D(context->width(), context->height()), rootTransform, 1.0, false, *_bezierPathsBoundingBoxContext.get());
|
||||
|
||||
return nil;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ public final class ViewController: UIViewController {
|
|||
let updatesPerSecond = Double(numUpdates) / deltaTime
|
||||
startTime = timestamp
|
||||
numUpdates = 0
|
||||
print("updatesPerSecond: \(updatesPerSecond)")
|
||||
print("Ours: updatesPerSecond: \(updatesPerSecond)")
|
||||
}
|
||||
}
|
||||
}.start()
|
||||
|
|
@ -205,7 +205,7 @@ public final class ViewController: UIViewController {
|
|||
let updatesPerSecond = Double(numUpdates) / deltaTime
|
||||
startTime = timestamp
|
||||
numUpdates = 0
|
||||
print("updatesPerSecond: \(updatesPerSecond)")
|
||||
print("Rlottie: updatesPerSecond: \(updatesPerSecond)")
|
||||
}
|
||||
}
|
||||
}.start()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue