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

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

Issue 2320823003: cc/blimp: Remove Initialize and Close messages. (Closed)
Patch Set: format 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/proto/compositor_message_to_impl.proto ('k') | 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 LayerTree* layer_tree() { return layer_tree_host()->GetLayerTree(); } 147 LayerTree* layer_tree() { return layer_tree_host()->GetLayerTree(); }
148 LayerTreeHost* remote_client_layer_tree_host(); 148 LayerTreeHost* remote_client_layer_tree_host();
149 SharedBitmapManager* shared_bitmap_manager() const { 149 SharedBitmapManager* shared_bitmap_manager() const {
150 return shared_bitmap_manager_.get(); 150 return shared_bitmap_manager_.get();
151 } 151 }
152 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager() { 152 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager() {
153 return gpu_memory_buffer_manager_.get(); 153 return gpu_memory_buffer_manager_.get();
154 } 154 }
155 155
156 void DestroyLayerTreeHost(); 156 void DestroyLayerTreeHost();
157 void DestroyRemoteClientHost() override;
158
159 void CreateRemoteClientHost(
160 const proto::CompositorMessageToImpl& proto) override;
161 157
162 // By default, output surface recreation is synchronous. 158 // By default, output surface recreation is synchronous.
163 void RequestNewOutputSurface() override; 159 void RequestNewOutputSurface() override;
164 // Override this and call the base class to change what ContextProviders will 160 // Override this and call the base class to change what ContextProviders will
165 // be used (such as for pixel tests). Or override it and create your own 161 // be used (such as for pixel tests). Or override it and create your own
166 // TestDelegatingOutputSurface to control how it is created. 162 // TestDelegatingOutputSurface to control how it is created.
167 virtual std::unique_ptr<TestDelegatingOutputSurface> 163 virtual std::unique_ptr<TestDelegatingOutputSurface>
168 CreateDelegatingOutputSurface( 164 CreateDelegatingOutputSurface(
169 scoped_refptr<ContextProvider> compositor_context_provider, 165 scoped_refptr<ContextProvider> compositor_context_provider,
170 scoped_refptr<ContextProvider> worker_context_provider); 166 scoped_refptr<ContextProvider> worker_context_provider);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ 231 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \
236 SINGLE_THREAD_TEST_F(TEST_FIXTURE_NAME); \ 232 SINGLE_THREAD_TEST_F(TEST_FIXTURE_NAME); \
237 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) 233 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME)
238 234
239 // Some tests want to control when notify ready for activation occurs, 235 // Some tests want to control when notify ready for activation occurs,
240 // but this is not supported in the single-threaded case. 236 // but this is not supported in the single-threaded case.
241 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ 237 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \
242 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) 238 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME)
243 239
244 #endif // CC_TEST_LAYER_TREE_TEST_H_ 240 #endif // CC_TEST_LAYER_TREE_TEST_H_
OLDNEW
« no previous file with comments | « cc/proto/compositor_message_to_impl.proto ('k') | cc/test/layer_tree_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698