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

Side by Side Diff: cc/test/fake_layer_tree_host.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
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_LAYER_TREE_HOST_H_ 5 #ifndef CC_TEST_FAKE_LAYER_TREE_HOST_H_
6 #define CC_TEST_FAKE_LAYER_TREE_HOST_H_ 6 #define CC_TEST_FAKE_LAYER_TREE_HOST_H_
7 7
8 #include "cc/debug/micro_benchmark_controller.h" 8 #include "cc/debug/micro_benchmark_controller.h"
9 #include "cc/test/fake_impl_proxy.h" 9 #include "cc/test/fake_impl_proxy.h"
10 #include "cc/test/fake_layer_tree_host_client.h" 10 #include "cc/test/fake_layer_tree_host_client.h"
11 #include "cc/test/fake_layer_tree_host_impl.h" 11 #include "cc/test/fake_layer_tree_host_impl.h"
12 #include "cc/test/test_shared_bitmap_manager.h"
12 #include "cc/trees/layer_tree_host.h" 13 #include "cc/trees/layer_tree_host.h"
13 #include "cc/trees/layer_tree_impl.h" 14 #include "cc/trees/layer_tree_impl.h"
14 #include "cc/trees/tree_synchronizer.h" 15 #include "cc/trees/tree_synchronizer.h"
15 16
16 namespace cc { 17 namespace cc {
17 18
18 class FakeLayerTreeHost : public LayerTreeHost { 19 class FakeLayerTreeHost : public LayerTreeHost {
19 public: 20 public:
20 static scoped_ptr<FakeLayerTreeHost> Create(); 21 static scoped_ptr<FakeLayerTreeHost> Create();
21 22
(...skipping 24 matching lines...) Expand all
46 MicroBenchmarkController* GetMicroBenchmarkController() { 47 MicroBenchmarkController* GetMicroBenchmarkController() {
47 return &micro_benchmark_controller_; 48 return &micro_benchmark_controller_;
48 } 49 }
49 50
50 bool needs_commit() { return needs_commit_; } 51 bool needs_commit() { return needs_commit_; }
51 52
52 private: 53 private:
53 FakeLayerTreeHost(LayerTreeHostClient* client, 54 FakeLayerTreeHost(LayerTreeHostClient* client,
54 const LayerTreeSettings& settings) 55 const LayerTreeSettings& settings)
55 : LayerTreeHost(client, NULL, settings), 56 : LayerTreeHost(client, NULL, settings),
56 host_impl_(settings, &proxy_), 57 host_impl_(settings, &proxy_, &manager_),
57 needs_commit_(false) {} 58 needs_commit_(false) {}
58 59
59 FakeImplProxy proxy_; 60 FakeImplProxy proxy_;
61 TestSharedBitmapManager manager_;
60 FakeLayerTreeHostImpl host_impl_; 62 FakeLayerTreeHostImpl host_impl_;
61 bool needs_commit_; 63 bool needs_commit_;
62 }; 64 };
63 65
64 } // namespace cc 66 } // namespace cc
65 67
66 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_H_ 68 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698