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

Unified Diff: third_party/WebKit/Source/platform/scheduler/base/work_queue_sets.h

Issue 2396533004: Introduce a FlatMap and FlatSet into WTF (Closed)
Patch Set: Add missing ostream override Created 4 years, 2 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: third_party/WebKit/Source/platform/scheduler/base/work_queue_sets.h
diff --git a/third_party/WebKit/Source/platform/scheduler/base/work_queue_sets.h b/third_party/WebKit/Source/platform/scheduler/base/work_queue_sets.h
index 8fa2c5d18886969e4b76edbc5c0d488d4a414180..4d8743b6838b536255619f57f4cb24da50691ea9 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/work_queue_sets.h
+++ b/third_party/WebKit/Source/platform/scheduler/base/work_queue_sets.h
@@ -15,6 +15,7 @@
#include "base/trace_event/trace_event_argument.h"
#include "platform/scheduler/base/task_queue_impl.h"
#include "public/platform/WebCommon.h"
+#include "wtf/FlatMap.h"
namespace blink {
namespace scheduler {
@@ -63,7 +64,7 @@ class BLINK_PLATFORM_EXPORT WorkQueueSets {
const char* name() const { return name_; }
private:
- typedef std::map<EnqueueOrder, WorkQueue*> EnqueueOrderToWorkQueueMap;
+ typedef WTF::FlatMap<EnqueueOrder, WorkQueue*> EnqueueOrderToWorkQueueMap;
std::vector<EnqueueOrderToWorkQueueMap> enqueue_order_to_work_queue_maps_;
const char* name_;

Powered by Google App Engine
This is Rietveld 408576698