Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2fd0cac authored by Ryan Mitchell's avatar Ryan Mitchell
Browse files

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

This reverts commit b5cd4cc2.

Reason for revert: b/173742005

Change-Id: I4bc71de39269f2f37101f94bf0c3b3a5158e7e9d
parent b5cd4cc2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1041,7 +1041,9 @@ base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::ResolveBag(

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

base::expected<const ResolvedBag*, NullOrIOError> AssetManager2::GetBag(