| 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 18 matching lines...) Expand all Loading... |
| 29 class TestHooks : public AnimationDelegate { | 29 class TestHooks : public AnimationDelegate { |
| 30 public: | 30 public: |
| 31 TestHooks(); | 31 TestHooks(); |
| 32 ~TestHooks() override; | 32 ~TestHooks() override; |
| 33 | 33 |
| 34 void ReadSettings(const LayerTreeSettings& settings); | 34 void ReadSettings(const LayerTreeSettings& settings); |
| 35 | 35 |
| 36 virtual void CreateResourceAndTileTaskWorkerPool( | 36 virtual void CreateResourceAndTileTaskWorkerPool( |
| 37 LayerTreeHostImpl* host_impl, | 37 LayerTreeHostImpl* host_impl, |
| 38 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool, | 38 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool, |
| 39 scoped_ptr<ResourcePool>* resource_pool, | 39 scoped_ptr<ResourcePool>* resource_pool); |
| 40 scoped_ptr<ResourcePool>* staging_resource_pool); | |
| 41 virtual void WillBeginImplFrameOnThread(LayerTreeHostImpl* host_impl, | 40 virtual void WillBeginImplFrameOnThread(LayerTreeHostImpl* host_impl, |
| 42 const BeginFrameArgs& args) {} | 41 const BeginFrameArgs& args) {} |
| 43 virtual void DidFinishImplFrameOnThread(LayerTreeHostImpl* host_impl) {} | 42 virtual void DidFinishImplFrameOnThread(LayerTreeHostImpl* host_impl) {} |
| 44 virtual void BeginMainFrameAbortedOnThread(LayerTreeHostImpl* host_impl, | 43 virtual void BeginMainFrameAbortedOnThread(LayerTreeHostImpl* host_impl, |
| 45 CommitEarlyOutReason reason) {} | 44 CommitEarlyOutReason reason) {} |
| 46 virtual void BeginCommitOnThread(LayerTreeHostImpl* host_impl) {} | 45 virtual void BeginCommitOnThread(LayerTreeHostImpl* host_impl) {} |
| 47 virtual void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) {} | 46 virtual void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) {} |
| 48 virtual void WillActivateTreeOnThread(LayerTreeHostImpl* host_impl) {} | 47 virtual void WillActivateTreeOnThread(LayerTreeHostImpl* host_impl) {} |
| 49 virtual void DidActivateTreeOnThread(LayerTreeHostImpl* host_impl) {} | 48 virtual void DidActivateTreeOnThread(LayerTreeHostImpl* host_impl) {} |
| 50 virtual void InitializedRendererOnThread(LayerTreeHostImpl* host_impl, | 49 virtual void InitializedRendererOnThread(LayerTreeHostImpl* host_impl, |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ | 306 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ |
| 308 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ | 307 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ |
| 309 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) | 308 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) |
| 310 | 309 |
| 311 // Some tests want to control when notify ready for activation occurs, | 310 // Some tests want to control when notify ready for activation occurs, |
| 312 // but this is not supported in the single-threaded case. | 311 // but this is not supported in the single-threaded case. |
| 313 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ | 312 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ |
| 314 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) | 313 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) |
| 315 | 314 |
| 316 #endif // CC_TEST_LAYER_TREE_TEST_H_ | 315 #endif // CC_TEST_LAYER_TREE_TEST_H_ |
| OLD | NEW |