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

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

Issue 2400733002: cc: Restructure access to LayerTreeHost in LayerTreeTests. (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/test/layer_tree_test.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_LAYER_TREE_TEST_H_ 5 #ifndef CC_TEST_LAYER_TREE_TEST_H_
6 #define CC_TEST_LAYER_TREE_TEST_H_ 6 #define CC_TEST_LAYER_TREE_TEST_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/threading/thread.h" 9 #include "base/threading/thread.h"
10 #include "cc/animation/animation_delegate.h" 10 #include "cc/animation/animation_delegate.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 } 136 }
137 Proxy* proxy() const { 137 Proxy* proxy() const {
138 return layer_tree_host_ ? layer_tree_host_->proxy() : NULL; 138 return layer_tree_host_ ? layer_tree_host_->proxy() : NULL;
139 } 139 }
140 TaskRunnerProvider* task_runner_provider() const; 140 TaskRunnerProvider* task_runner_provider() const;
141 TaskGraphRunner* task_graph_runner() const { 141 TaskGraphRunner* task_graph_runner() const {
142 return task_graph_runner_.get(); 142 return task_graph_runner_.get();
143 } 143 }
144 bool TestEnded() const { return ended_; } 144 bool TestEnded() const { return ended_; }
145 145
146 LayerTreeHostInProcess* layer_tree_host(); 146 LayerTreeHost* layer_tree_host();
147 LayerTreeHostInProcess* layer_tree_host_in_process();
147 LayerTree* layer_tree() { return layer_tree_host()->GetLayerTree(); } 148 LayerTree* layer_tree() { return layer_tree_host()->GetLayerTree(); }
148 SharedBitmapManager* shared_bitmap_manager() const { 149 SharedBitmapManager* shared_bitmap_manager() const {
149 return shared_bitmap_manager_.get(); 150 return shared_bitmap_manager_.get();
150 } 151 }
151 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager() { 152 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager() {
152 return gpu_memory_buffer_manager_.get(); 153 return gpu_memory_buffer_manager_.get();
153 } 154 }
154 155
155 void DestroyLayerTreeHost(); 156 void DestroyLayerTreeHost();
156 157
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ 223 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \
223 SINGLE_THREAD_TEST_F(TEST_FIXTURE_NAME); \ 224 SINGLE_THREAD_TEST_F(TEST_FIXTURE_NAME); \
224 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) 225 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME)
225 226
226 // Some tests want to control when notify ready for activation occurs, 227 // Some tests want to control when notify ready for activation occurs,
227 // but this is not supported in the single-threaded case. 228 // but this is not supported in the single-threaded case.
228 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ 229 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \
229 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) 230 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME)
230 231
231 #endif // CC_TEST_LAYER_TREE_TEST_H_ 232 #endif // CC_TEST_LAYER_TREE_TEST_H_
OLDNEW
« no previous file with comments | « no previous file | cc/test/layer_tree_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698