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

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

Issue 2340143002: cc: Rename LayerTreeHost to LayerTreeHostInProcess. (Closed)
Patch Set: comment fix Created 4 years, 3 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/layers/texture_layer_unittest.cc ('k') | cc/test/fake_layer_tree_host.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_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_task_runner_provider.h" 9 #include "cc/test/fake_impl_task_runner_provider.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/test/test_shared_bitmap_manager.h"
13 #include "cc/trees/layer_tree_host.h" 13 #include "cc/trees/layer_tree_host_in_process.h"
14 #include "cc/trees/layer_tree_impl.h" 14 #include "cc/trees/layer_tree_impl.h"
15 #include "cc/trees/tree_synchronizer.h" 15 #include "cc/trees/tree_synchronizer.h"
16 16
17 namespace cc { 17 namespace cc {
18 class ImageSerializationProcessor; 18 class ImageSerializationProcessor;
19 class TestTaskGraphRunner; 19 class TestTaskGraphRunner;
20 20
21 class FakeLayerTreeHost : public LayerTreeHost { 21 class FakeLayerTreeHost : public LayerTreeHostInProcess {
22 public: 22 public:
23 static std::unique_ptr<FakeLayerTreeHost> Create( 23 static std::unique_ptr<FakeLayerTreeHost> Create(
24 FakeLayerTreeHostClient* client, 24 FakeLayerTreeHostClient* client,
25 TestTaskGraphRunner* task_graph_runner); 25 TestTaskGraphRunner* task_graph_runner);
26 static std::unique_ptr<FakeLayerTreeHost> Create( 26 static std::unique_ptr<FakeLayerTreeHost> Create(
27 FakeLayerTreeHostClient* client, 27 FakeLayerTreeHostClient* client,
28 TestTaskGraphRunner* task_graph_runner, 28 TestTaskGraphRunner* task_graph_runner,
29 const LayerTreeSettings& settings); 29 const LayerTreeSettings& settings);
30 static std::unique_ptr<FakeLayerTreeHost> Create( 30 static std::unique_ptr<FakeLayerTreeHost> Create(
31 FakeLayerTreeHostClient* client, 31 FakeLayerTreeHostClient* client,
(...skipping 28 matching lines...) Expand all
60 layer_tree_->BuildPropertyTreesForTesting(); 60 layer_tree_->BuildPropertyTreesForTesting();
61 } 61 }
62 62
63 LayerImpl* CommitAndCreateLayerImplTree(); 63 LayerImpl* CommitAndCreateLayerImplTree();
64 LayerImpl* CommitAndCreatePendingTree(); 64 LayerImpl* CommitAndCreatePendingTree();
65 65
66 FakeLayerTreeHostImpl* host_impl() { return &host_impl_; } 66 FakeLayerTreeHostImpl* host_impl() { return &host_impl_; }
67 LayerTreeImpl* active_tree() { return host_impl_.active_tree(); } 67 LayerTreeImpl* active_tree() { return host_impl_.active_tree(); }
68 LayerTreeImpl* pending_tree() { return host_impl_.pending_tree(); } 68 LayerTreeImpl* pending_tree() { return host_impl_.pending_tree(); }
69 69
70 using LayerTreeHost::ScheduleMicroBenchmark; 70 using LayerTreeHostInProcess::ScheduleMicroBenchmark;
71 using LayerTreeHost::SendMessageToMicroBenchmark; 71 using LayerTreeHostInProcess::SendMessageToMicroBenchmark;
72 using LayerTreeHost::InitializeSingleThreaded; 72 using LayerTreeHostInProcess::InitializeSingleThreaded;
73 using LayerTreeHost::InitializeForTesting; 73 using LayerTreeHostInProcess::InitializeForTesting;
74 using LayerTreeHost::InitializePictureCacheForTesting; 74 using LayerTreeHostInProcess::InitializePictureCacheForTesting;
75 using LayerTreeHost::RecordGpuRasterizationHistogram; 75 using LayerTreeHostInProcess::RecordGpuRasterizationHistogram;
76 using LayerTreeHost::SetUIResourceManagerForTesting; 76 using LayerTreeHostInProcess::SetUIResourceManagerForTesting;
77 77
78 void UpdateLayers() { LayerTreeHost::UpdateLayers(); } 78 void UpdateLayers() { LayerTreeHostInProcess::UpdateLayers(); }
79 79
80 MicroBenchmarkController* GetMicroBenchmarkController() { 80 MicroBenchmarkController* GetMicroBenchmarkController() {
81 return &micro_benchmark_controller_; 81 return &micro_benchmark_controller_;
82 } 82 }
83 83
84 bool needs_commit() { return needs_commit_; } 84 bool needs_commit() { return needs_commit_; }
85 85
86 FakeLayerTreeHost(FakeLayerTreeHostClient* client, 86 FakeLayerTreeHost(FakeLayerTreeHostClient* client,
87 LayerTreeHost::InitParams* params, 87 LayerTreeHostInProcess::InitParams* params,
88 CompositorMode mode); 88 CompositorMode mode);
89 89
90 private: 90 private:
91 FakeImplTaskRunnerProvider task_runner_provider_; 91 FakeImplTaskRunnerProvider task_runner_provider_;
92 FakeLayerTreeHostClient* client_; 92 FakeLayerTreeHostClient* client_;
93 TestSharedBitmapManager manager_; 93 TestSharedBitmapManager manager_;
94 FakeLayerTreeHostImpl host_impl_; 94 FakeLayerTreeHostImpl host_impl_;
95 bool needs_commit_; 95 bool needs_commit_;
96 }; 96 };
97 97
98 } // namespace cc 98 } // namespace cc
99 99
100 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_H_ 100 #endif // CC_TEST_FAKE_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/layers/texture_layer_unittest.cc ('k') | cc/test/fake_layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698