mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
[ASStackLayoutSpec] Performance improvements (#2470)
* Initial commit for ASStackLayoutSpec improvements * Remove the lock in ASStackLayoutSpec and make the ASStackLayoutSpecStyle const I think we don't need lock here as the style already has a lock while we set the value * Add ASStackLayoutSpecItem that replaces layout specific items * Prevent baseline pass if not needed * Update comments
This commit is contained in:
committed by
GitHub
parent
ca203158da
commit
611894329a
@@ -14,7 +14,7 @@
|
||||
|
||||
/** Represents a set of laid out and positioned stack layout children. */
|
||||
struct ASStackPositionedLayout {
|
||||
const std::vector<ASLayout *> sublayouts;
|
||||
const std::vector<ASStackLayoutSpecItem> items;
|
||||
const CGFloat crossSize;
|
||||
|
||||
/** Given an unpositioned layout, computes the positions each child should be placed at. */
|
||||
|
||||
Reference in New Issue
Block a user