Revert^2 "Do not cache bag parent stack until requested"

06a7331b84

Change-Id: Ib1db7cafd40408af248c9cda0c2ffaec065ef606
This commit is contained in:
Ryan Mitchell
2020-11-16 23:08:18 +00:00
parent 016f9e65e4
commit b5cd4cc2d9

View File

@@ -1041,9 +1041,7 @@ base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::ResolveBag(
base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::GetBag(uint32_t resid) const {
std::vector<uint32_t> found_resids;
const auto bag = GetBag(resid, found_resids);
cached_bag_resid_stacks_.emplace(resid, found_resids);
return bag;
return GetBag(resid, found_resids);
}
base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::GetBag(