Lines Matching refs:layerMap
58 std::unordered_map<int32_t, Layer*> layerMap; in generateLayerList() local
62 layerMap.reserve(layersProto.layers_size()); in generateLayerList()
66 layerMap[layerList.back().id] = &layerList.back(); in generateLayerList()
71 updateChildrenAndRelative(layersProto.layers(i), layerMap); in generateLayerList()
174 std::unordered_map<int32_t, Layer*>& layerMap) { in updateChildrenAndRelative() argument
175 auto currLayer = layerMap[layerProto.id()]; in updateChildrenAndRelative()
178 if (layerMap.count(layerProto.children(i)) > 0) { in updateChildrenAndRelative()
179 currLayer->children.push_back(layerMap[layerProto.children(i)]); in updateChildrenAndRelative()
184 if (layerMap.count(layerProto.relatives(i)) > 0) { in updateChildrenAndRelative()
185 currLayer->relatives.push_back(layerMap[layerProto.relatives(i)]); in updateChildrenAndRelative()
190 if (layerMap.count(layerProto.parent()) > 0) { in updateChildrenAndRelative()
191 currLayer->parent = layerMap[layerProto.parent()]; in updateChildrenAndRelative()
196 if (layerMap.count(layerProto.z_order_relative_of()) > 0) { in updateChildrenAndRelative()
197 currLayer->zOrderRelativeOf = layerMap[layerProto.z_order_relative_of()]; in updateChildrenAndRelative()