MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getAllAssetLoaders

Method getAllAssetLoaders

valdi/src/valdi/runtime/Resources/AssetLoaderManager.cpp:144–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144std::vector<Ref<AssetLoader>> AssetLoaderManager::getAllAssetLoaders() const {
145 std::lock_guard<Mutex> mutex(_mutex);
146
147 std::vector<Ref<AssetLoader>> allAssetLoaders;
148
149 for (const auto& entry : _entries) {
150 if (std::find(allAssetLoaders.begin(), allAssetLoaders.end(), entry.assetLoader) == allAssetLoaders.end()) {
151 allAssetLoaders.emplace_back(entry.assetLoader);
152 }
153 }
154
155 return allAssetLoaders;
156}
157
158} // namespace Valdi

Callers 1

unregisterAssetLoaderMethod · 0.80

Calls 3

endMethod · 0.65
findFunction · 0.50
beginMethod · 0.45

Tested by

no test coverage detected