Every call made a copy of `context_provider_->ContextCapabilities()` which in turn copied the `flat_map` inside the `Capabilities` object.
ChromeOS-wide profiling suggests this function is responsible for about a third of CPU cycles spent in the `flat_map` constructor in Chrome.
Change-Id: I05e34ad5414ae7db9f5481b1ed72b6cb09422491
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6032198
Auto-Submit: Matthew Riley <mattdr@google.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1385348}