OLD | NEW |
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 class TestHooks : public AnimationDelegate { | 48 class TestHooks : public AnimationDelegate { |
49 public: | 49 public: |
50 TestHooks(); | 50 TestHooks(); |
51 ~TestHooks() override; | 51 ~TestHooks() override; |
52 | 52 |
53 void ReadSettings(const LayerTreeSettings& settings); | 53 void ReadSettings(const LayerTreeSettings& settings); |
54 | 54 |
55 virtual void CreateResourceAndTileTaskWorkerPool( | 55 virtual void CreateResourceAndTileTaskWorkerPool( |
56 LayerTreeHostImpl* host_impl, | 56 LayerTreeHostImpl* host_impl, |
57 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool, | 57 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool, |
58 scoped_ptr<ResourcePool>* resource_pool); | 58 scoped_ptr<ResourcePool>* resource_pool, |
| 59 scoped_ptr<ResourcePool>* staging_resource_pool); |
59 virtual void WillBeginImplFrameOnThread(LayerTreeHostImpl* host_impl, | 60 virtual void WillBeginImplFrameOnThread(LayerTreeHostImpl* host_impl, |
60 const BeginFrameArgs& args) {} | 61 const BeginFrameArgs& args) {} |
61 virtual void DidFinishImplFrameOnThread(LayerTreeHostImpl* host_impl) {} | 62 virtual void DidFinishImplFrameOnThread(LayerTreeHostImpl* host_impl) {} |
62 virtual void BeginMainFrameAbortedOnThread(LayerTreeHostImpl* host_impl, | 63 virtual void BeginMainFrameAbortedOnThread(LayerTreeHostImpl* host_impl, |
63 CommitEarlyOutReason reason) {} | 64 CommitEarlyOutReason reason) {} |
64 virtual void BeginCommitOnThread(LayerTreeHostImpl* host_impl) {} | 65 virtual void BeginCommitOnThread(LayerTreeHostImpl* host_impl) {} |
65 virtual void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) {} | 66 virtual void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) {} |
66 virtual void WillActivateTreeOnThread(LayerTreeHostImpl* host_impl) {} | 67 virtual void WillActivateTreeOnThread(LayerTreeHostImpl* host_impl) {} |
67 virtual void DidActivateTreeOnThread(LayerTreeHostImpl* host_impl) {} | 68 virtual void DidActivateTreeOnThread(LayerTreeHostImpl* host_impl) {} |
68 virtual void InitializedRendererOnThread(LayerTreeHostImpl* host_impl, | 69 virtual void InitializedRendererOnThread(LayerTreeHostImpl* host_impl, |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ | 326 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ |
326 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ | 327 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ |
327 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) | 328 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) |
328 | 329 |
329 // Some tests want to control when notify ready for activation occurs, | 330 // Some tests want to control when notify ready for activation occurs, |
330 // but this is not supported in the single-threaded case. | 331 // but this is not supported in the single-threaded case. |
331 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ | 332 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ |
332 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) | 333 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) |
333 | 334 |
334 #endif // CC_TEST_LAYER_TREE_TEST_H_ | 335 #endif // CC_TEST_LAYER_TREE_TEST_H_ |
OLD | NEW |