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

Side by Side Diff: cc/test/fake_ui_resource_layer_tree_host_impl.h

Issue 1587283002: Switch cc to std::unordered_*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unordered-map
Patch Set: Fix MSVC build issue Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « cc/test/animation_timelines_test_common.cc ('k') | cc/test/ordered_texture_map.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TEST_FAKE_UI_RESOURCE_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TEST_FAKE_UI_RESOURCE_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TEST_FAKE_UI_RESOURCE_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TEST_FAKE_UI_RESOURCE_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include "base/containers/hash_tables.h" 8 #include <unordered_map>
9
9 #include "cc/test/fake_layer_tree_host_impl.h" 10 #include "cc/test/fake_layer_tree_host_impl.h"
10 11
11 namespace cc { 12 namespace cc {
12 class TaskGraphRunner; 13 class TaskGraphRunner;
13 14
14 class FakeUIResourceLayerTreeHostImpl : public FakeLayerTreeHostImpl { 15 class FakeUIResourceLayerTreeHostImpl : public FakeLayerTreeHostImpl {
15 public: 16 public:
16 explicit FakeUIResourceLayerTreeHostImpl( 17 explicit FakeUIResourceLayerTreeHostImpl(
17 TaskRunnerProvider* task_runner_provider, 18 TaskRunnerProvider* task_runner_provider,
18 SharedBitmapManager* manager, 19 SharedBitmapManager* manager,
19 TaskGraphRunner* task_graph_runner); 20 TaskGraphRunner* task_graph_runner);
20 ~FakeUIResourceLayerTreeHostImpl() override; 21 ~FakeUIResourceLayerTreeHostImpl() override;
21 22
22 void CreateUIResource(UIResourceId uid, 23 void CreateUIResource(UIResourceId uid,
23 const UIResourceBitmap& bitmap) override; 24 const UIResourceBitmap& bitmap) override;
24 25
25 void DeleteUIResource(UIResourceId uid) override; 26 void DeleteUIResource(UIResourceId uid) override;
26 27
27 ResourceId ResourceIdForUIResource(UIResourceId uid) const override; 28 ResourceId ResourceIdForUIResource(UIResourceId uid) const override;
28 29
29 bool IsUIResourceOpaque(UIResourceId uid) const override; 30 bool IsUIResourceOpaque(UIResourceId uid) const override;
30 31
31 private: 32 private:
32 typedef base::hash_map<UIResourceId, LayerTreeHostImpl::UIResourceData> 33 using UIResourceMap =
33 UIResourceMap; 34 std::unordered_map<UIResourceId, LayerTreeHostImpl::UIResourceData>;
34 UIResourceMap fake_ui_resource_map_; 35 UIResourceMap fake_ui_resource_map_;
35 }; 36 };
36 37
37 } // namespace cc 38 } // namespace cc
38 39
39 #endif // CC_TEST_FAKE_UI_RESOURCE_LAYER_TREE_HOST_IMPL_H_ 40 #endif // CC_TEST_FAKE_UI_RESOURCE_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/animation_timelines_test_common.cc ('k') | cc/test/ordered_texture_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698