Lines Matching refs:resource
604 auto resource = mDisplayResources.find(display); in addLayerToDisplayResources() local
605 if (resource == mDisplayResources.end()) { in addLayerToDisplayResources()
606 resource = mDisplayResources.insert({display, DisplayResource(false)}).first; in addLayerToDisplayResources()
609 if (!resource->second.layers.insert(layer).second) { in addLayerToDisplayResources()
617 auto resource = mDisplayResources.find(display); in removeLayerFromDisplayResources() local
618 if (resource != mDisplayResources.end()) { in removeLayerFromDisplayResources()
619 resource->second.layers.erase(layer); in removeLayerFromDisplayResources()
665 const auto& [display, resource] = *it; in destroyAllLayers()
667 while (!resource.layers.empty()) { in destroyAllLayers()
668 auto layer = *resource.layers.begin(); in destroyAllLayers()
677 if (resource.isVirtual) { in destroyAllLayers()