void Layer::commitChildList() {
for (size_t i = 0; i < mCurrentChildren.size(); i++) {
const auto& child = mCurrentChildren[i];
child->commitChildList();
}
mDrawingChildren = mCurrentChildren;
mDrawingParent = mCurrentParent;
}
mCurrentChildren
到 mDrawingChildren
。mCurrentParent
到 mDrawingParent
。mCurrentChildren
,执行上面两个操作。