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

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

Issue 24078024: cc: Return resources to child compositor via a Callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deletechild: No AndReceiveAck needed, change STP Created 7 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 | Annotate | Revision Log
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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 virtual void RunTest(bool threaded, 145 virtual void RunTest(bool threaded,
146 bool delegating_renderer, 146 bool delegating_renderer,
147 bool impl_side_painting); 147 bool impl_side_painting);
148 148
149 bool HasImplThread() { return proxy() ? proxy()->HasImplThread() : false; } 149 bool HasImplThread() { return proxy() ? proxy()->HasImplThread() : false; }
150 base::SingleThreadTaskRunner* ImplThreadTaskRunner() { 150 base::SingleThreadTaskRunner* ImplThreadTaskRunner() {
151 DCHECK(proxy()); 151 DCHECK(proxy());
152 return proxy()->ImplThreadTaskRunner() ? proxy()->ImplThreadTaskRunner() 152 return proxy()->ImplThreadTaskRunner() ? proxy()->ImplThreadTaskRunner()
153 : main_task_runner_.get(); 153 : main_task_runner_.get();
154 } 154 }
155 base::SingleThreadTaskRunner* MainThreadTaskRunner() {
156 return main_task_runner_.get();
157 }
155 Proxy* proxy() const { 158 Proxy* proxy() const {
156 return layer_tree_host_ ? layer_tree_host_->proxy() : NULL; 159 return layer_tree_host_ ? layer_tree_host_->proxy() : NULL;
157 } 160 }
158 161
159 bool TestEnded() const { return ended_; } 162 bool TestEnded() const { return ended_; }
160 163
161 LayerTreeHost* layer_tree_host() { return layer_tree_host_.get(); } 164 LayerTreeHost* layer_tree_host() { return layer_tree_host_.get(); }
162 bool delegating_renderer() const { return delegating_renderer_; } 165 bool delegating_renderer() const { return delegating_renderer_; }
163 FakeOutputSurface* output_surface() { return output_surface_; } 166 FakeOutputSurface* output_surface() { return output_surface_; }
164 167
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 245
243 #define SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) \ 246 #define SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) \
244 SINGLE_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ 247 SINGLE_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME); \
245 MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) 248 MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME)
246 249
247 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ 250 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \
248 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ 251 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \
249 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) 252 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME)
250 253
251 #endif // CC_TEST_LAYER_TREE_TEST_H_ 254 #endif // CC_TEST_LAYER_TREE_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/fake_delegated_renderer_layer_impl.cc ('k') | cc/trees/layer_tree_host_unittest_delegated.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698