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

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

Issue 202763002: Switch to use SharedBitmapManager all the time in cc_unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/fake_layer_tree_host_impl.cc ('k') | cc/test/fake_ui_resource_layer_tree_host_impl.cc » ('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 "base/containers/hash_tables.h"
9 #include "cc/test/fake_layer_tree_host_impl.h" 9 #include "cc/test/fake_layer_tree_host_impl.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 class FakeUIResourceLayerTreeHostImpl : public FakeLayerTreeHostImpl { 13 class FakeUIResourceLayerTreeHostImpl : public FakeLayerTreeHostImpl {
14 public: 14 public:
15 explicit FakeUIResourceLayerTreeHostImpl(Proxy* proxy); 15 explicit FakeUIResourceLayerTreeHostImpl(Proxy* proxy,
16 SharedBitmapManager* manager);
16 virtual ~FakeUIResourceLayerTreeHostImpl(); 17 virtual ~FakeUIResourceLayerTreeHostImpl();
17 18
18 virtual void CreateUIResource(UIResourceId uid, 19 virtual void CreateUIResource(UIResourceId uid,
19 const UIResourceBitmap& bitmap) OVERRIDE; 20 const UIResourceBitmap& bitmap) OVERRIDE;
20 21
21 virtual void DeleteUIResource(UIResourceId uid) OVERRIDE; 22 virtual void DeleteUIResource(UIResourceId uid) OVERRIDE;
22 23
23 virtual ResourceProvider::ResourceId ResourceIdForUIResource( 24 virtual ResourceProvider::ResourceId ResourceIdForUIResource(
24 UIResourceId uid) const OVERRIDE; 25 UIResourceId uid) const OVERRIDE;
25 26
26 virtual bool IsUIResourceOpaque(UIResourceId uid) const OVERRIDE; 27 virtual bool IsUIResourceOpaque(UIResourceId uid) const OVERRIDE;
27 28
28 private: 29 private:
29 ResourceProvider::ResourceId fake_next_resource_id_; 30 ResourceProvider::ResourceId fake_next_resource_id_;
30 typedef base::hash_map<UIResourceId, LayerTreeHostImpl::UIResourceData> 31 typedef base::hash_map<UIResourceId, LayerTreeHostImpl::UIResourceData>
31 UIResourceMap; 32 UIResourceMap;
32 UIResourceMap fake_ui_resource_map_; 33 UIResourceMap fake_ui_resource_map_;
33 }; 34 };
34 35
35 } // namespace cc 36 } // namespace cc
36 37
37 #endif // CC_TEST_FAKE_UI_RESOURCE_LAYER_TREE_HOST_IMPL_H_ 38 #endif // CC_TEST_FAKE_UI_RESOURCE_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/fake_layer_tree_host_impl.cc ('k') | cc/test/fake_ui_resource_layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698