| 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 17 matching lines...) Expand all Loading... |
| 28 class TestWebGraphicsContext3D; | 28 class TestWebGraphicsContext3D; |
| 29 | 29 |
| 30 // Used by test stubs to notify the test when something interesting happens. | 30 // Used by test stubs to notify the test when something interesting happens. |
| 31 class TestHooks : public AnimationDelegate { | 31 class TestHooks : public AnimationDelegate { |
| 32 public: | 32 public: |
| 33 TestHooks(); | 33 TestHooks(); |
| 34 ~TestHooks() override; | 34 ~TestHooks() override; |
| 35 | 35 |
| 36 void ReadSettings(const LayerTreeSettings& settings); | 36 void ReadSettings(const LayerTreeSettings& settings); |
| 37 | 37 |
| 38 virtual void CreateResourceAndRasterWorkerPool( | 38 virtual void CreateResourceAndTileTaskWorkerPool( |
| 39 LayerTreeHostImpl* host_impl, | 39 LayerTreeHostImpl* host_impl, |
| 40 scoped_ptr<RasterWorkerPool>* raster_worker_pool, | 40 scoped_ptr<TileTaskWorkerPool>* raster_worker_pool, |
| 41 scoped_ptr<ResourcePool>* resource_pool, | 41 scoped_ptr<ResourcePool>* resource_pool, |
| 42 scoped_ptr<ResourcePool>* staging_resource_pool); | 42 scoped_ptr<ResourcePool>* staging_resource_pool); |
| 43 virtual void WillBeginImplFrameOnThread(LayerTreeHostImpl* host_impl, | 43 virtual void WillBeginImplFrameOnThread(LayerTreeHostImpl* host_impl, |
| 44 const BeginFrameArgs& args) {} | 44 const BeginFrameArgs& args) {} |
| 45 virtual void BeginMainFrameAbortedOnThread(LayerTreeHostImpl* host_impl, | 45 virtual void BeginMainFrameAbortedOnThread(LayerTreeHostImpl* host_impl, |
| 46 bool did_handle) {} | 46 bool did_handle) {} |
| 47 virtual void BeginCommitOnThread(LayerTreeHostImpl* host_impl) {} | 47 virtual void BeginCommitOnThread(LayerTreeHostImpl* host_impl) {} |
| 48 virtual void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) {} | 48 virtual void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) {} |
| 49 virtual void WillActivateTreeOnThread(LayerTreeHostImpl* host_impl) {} | 49 virtual void WillActivateTreeOnThread(LayerTreeHostImpl* host_impl) {} |
| 50 virtual void DidActivateTreeOnThread(LayerTreeHostImpl* host_impl) {} | 50 virtual void DidActivateTreeOnThread(LayerTreeHostImpl* host_impl) {} |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ | 366 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ |
| 367 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) | 367 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) |
| 368 | 368 |
| 369 // Some tests want to control when notify ready for activation occurs, | 369 // Some tests want to control when notify ready for activation occurs, |
| 370 // but this is not supported in the single-threaded case. | 370 // but this is not supported in the single-threaded case. |
| 371 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ | 371 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ |
| 372 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ | 372 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ |
| 373 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) | 373 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) |
| 374 | 374 |
| 375 #endif // CC_TEST_LAYER_TREE_TEST_H_ | 375 #endif // CC_TEST_LAYER_TREE_TEST_H_ |
| OLD | NEW |