Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Unified Diff: ui/ozone/platform/drm/common/drm_util.cc

Issue 2825853002: Improvements to uses of base::SmallMap (Closed)
Patch Set: Review comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/latency/latency_info.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/common/drm_util.cc
diff --git a/ui/ozone/platform/drm/common/drm_util.cc b/ui/ozone/platform/drm/common/drm_util.cc
index 59944118ae6d2b7ae45c4049fda153ca3a770bea..7d35a2a6c252fc4925ce6c3e6e0850518d80b138 100644
--- a/ui/ozone/platform/drm/common/drm_util.cc
+++ b/ui/ozone/platform/drm/common/drm_util.cc
@@ -13,7 +13,7 @@
#include <algorithm>
#include <utility>
-#include "base/containers/small_map.h"
+#include "base/containers/flat_map.h"
#include "base/memory/ptr_util.h"
#include "ui/display/util/edid_parser.h"
@@ -236,8 +236,7 @@ GetAvailableDisplayControllerInfos(int fd) {
available_connectors.push_back(std::move(connector));
}
- base::SmallMap<std::map<ScopedDrmConnectorPtr::element_type*, int>>
- connector_crtcs;
+ base::flat_map<ScopedDrmConnectorPtr::element_type*, int> connector_crtcs;
for (auto& c : available_connectors) {
uint32_t possible_crtcs = 0;
for (int i = 0; i < c->count_encoders; ++i) {
« no previous file with comments | « ui/latency/latency_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698