mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-05 22:11:22 +00:00
capi: expose layer item name for utiliziing by demand.
This commit is contained in:
parent
582e05af30
commit
3f404a0218
@ -226,6 +226,7 @@ typedef struct LOTLayerNode {
|
|||||||
LOTMatteType mMatte;
|
LOTMatteType mMatte;
|
||||||
int mVisible;
|
int mVisible;
|
||||||
int mAlpha;
|
int mAlpha;
|
||||||
|
const char *name;
|
||||||
|
|
||||||
} LOTLayerNode;
|
} LOTLayerNode;
|
||||||
|
|
||||||
|
|||||||
@ -237,6 +237,7 @@ void LOTLayerItem::buildLayerNode()
|
|||||||
mLayerCNode->mClipPath.elmPtr = nullptr;
|
mLayerCNode->mClipPath.elmPtr = nullptr;
|
||||||
mLayerCNode->mClipPath.ptCount = 0;
|
mLayerCNode->mClipPath.ptCount = 0;
|
||||||
mLayerCNode->mClipPath.elmCount = 0;
|
mLayerCNode->mClipPath.elmCount = 0;
|
||||||
|
mLayerCNode->name = name().c_str();
|
||||||
}
|
}
|
||||||
if (complexContent())
|
if (complexContent())
|
||||||
mLayerCNode->mAlpha = combinedAlpha() * 255;
|
mLayerCNode->mAlpha = combinedAlpha() * 255;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user