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

Unified Diff: cc/paint/discardable_image_map.h

Issue 2847553002: cc: Replace some instances of unordered_map with base::flat_map. (Closed)
Patch Set: 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
Index: cc/paint/discardable_image_map.h
diff --git a/cc/paint/discardable_image_map.h b/cc/paint/discardable_image_map.h
index 0e006838834ee618eb987e559a1d695fc0da5b7b..5a84fb8391cb14155e5a5c170fc5a9fae1cb984c 100644
--- a/cc/paint/discardable_image_map.h
+++ b/cc/paint/discardable_image_map.h
@@ -5,10 +5,10 @@
#ifndef CC_PAINT_DISCARDABLE_IMAGE_MAP_H_
#define CC_PAINT_DISCARDABLE_IMAGE_MAP_H_
-#include <unordered_map>
#include <utility>
#include <vector>
+#include "base/containers/flat_map.h"
#include "cc/base/rtree.h"
#include "cc/paint/draw_image.h"
#include "cc/paint/image_id.h"
@@ -59,7 +59,7 @@ class CC_PAINT_EXPORT DiscardableImageMap {
void EndGeneratingMetadata();
std::vector<std::pair<DrawImage, gfx::Rect>> all_images_;
- std::unordered_map<ImageId, gfx::Rect> image_id_to_rect_;
+ base::flat_map<ImageId, gfx::Rect> image_id_to_rect_;
RTree images_rtree_;
};

Powered by Google App Engine
This is Rietveld 408576698