capi: expose layer item name for utiliziing by demand.

This commit is contained in:
Hermet Park 2019-06-20 17:13:57 +09:00
parent 582e05af30
commit 3f404a0218
2 changed files with 2 additions and 0 deletions

View File

@ -226,6 +226,7 @@ typedef struct LOTLayerNode {
LOTMatteType mMatte; LOTMatteType mMatte;
int mVisible; int mVisible;
int mAlpha; int mAlpha;
const char *name;
} LOTLayerNode; } LOTLayerNode;

View File

@ -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;