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

Unified Diff: cc/tiles/image_decode_controller.h

Issue 1587283002: Switch cc to std::unordered_*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unordered-map
Patch Set: Created 4 years, 11 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/tiles/image_decode_controller.h
diff --git a/cc/tiles/image_decode_controller.h b/cc/tiles/image_decode_controller.h
index f63361af4699b35bdc53a5fa39ac249cb378dba7..22e1d4a2094658dd10ba858cbce93c49d9d2a0fd 100644
--- a/cc/tiles/image_decode_controller.h
+++ b/cc/tiles/image_decode_controller.h
@@ -7,7 +7,8 @@
#include <stdint.h>
-#include "base/containers/hash_tables.h"
+#include <unordered_map>
+
#include "base/memory/ref_counted.h"
#include "cc/base/cc_export.h"
#include "cc/playback/discardable_image_map.h"
@@ -42,11 +43,12 @@ class ImageDecodeController {
int layer_id,
uint64_t prepare_tiles_id);
- using ImageTaskMap = base::hash_map<uint32_t, scoped_refptr<ImageDecodeTask>>;
- using LayerImageTaskMap = base::hash_map<int, ImageTaskMap>;
+ using ImageTaskMap =
+ std::unordered_map<uint32_t, scoped_refptr<ImageDecodeTask>>;
+ using LayerImageTaskMap = std::unordered_map<int, ImageTaskMap>;
LayerImageTaskMap image_decode_tasks_;
- using LayerCountMap = base::hash_map<int, int>;
+ using LayerCountMap = std::unordered_map<int, int>;
LayerCountMap used_layer_counts_;
};

Powered by Google App Engine
This is Rietveld 408576698