| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // Hooks for SchedulerClient. | 84 // Hooks for SchedulerClient. |
| 85 virtual void ScheduledActionWillSendBeginMainFrame() {} | 85 virtual void ScheduledActionWillSendBeginMainFrame() {} |
| 86 virtual void ScheduledActionSendBeginMainFrame() {} | 86 virtual void ScheduledActionSendBeginMainFrame() {} |
| 87 virtual void ScheduledActionDrawAndSwapIfPossible() {} | 87 virtual void ScheduledActionDrawAndSwapIfPossible() {} |
| 88 virtual void ScheduledActionAnimate() {} | 88 virtual void ScheduledActionAnimate() {} |
| 89 virtual void ScheduledActionCommit() {} | 89 virtual void ScheduledActionCommit() {} |
| 90 virtual void ScheduledActionBeginOutputSurfaceCreation() {} | 90 virtual void ScheduledActionBeginOutputSurfaceCreation() {} |
| 91 | 91 |
| 92 // Implementation of AnimationDelegate: | 92 // Implementation of AnimationDelegate: |
| 93 virtual void NotifyAnimationStarted(base::TimeTicks monotonic_time, | 93 virtual void NotifyAnimationStarted(base::TimeTicks monotonic_time, |
| 94 Animation::TargetProperty target_property) | 94 Animation::TargetProperty target_property, |
| 95 override {} | 95 int group) override {} |
| 96 virtual void NotifyAnimationFinished( | 96 virtual void NotifyAnimationFinished( |
| 97 base::TimeTicks monotonic_time, | 97 base::TimeTicks monotonic_time, |
| 98 Animation::TargetProperty target_property) override {} | 98 Animation::TargetProperty target_property, |
| 99 int group) override {} |
| 99 | 100 |
| 100 virtual void RequestNewOutputSurface(bool fallback) = 0; | 101 virtual void RequestNewOutputSurface(bool fallback) = 0; |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 class BeginTask; | 104 class BeginTask; |
| 104 class LayerTreeHostClientForTesting; | 105 class LayerTreeHostClientForTesting; |
| 105 class TimeoutTask; | 106 class TimeoutTask; |
| 106 | 107 |
| 107 // The LayerTreeTests runs with the main loop running. It instantiates a single | 108 // The LayerTreeTests runs with the main loop running. It instantiates a single |
| 108 // LayerTreeHostForTesting and associated LayerTreeHostImplForTesting and | 109 // LayerTreeHostForTesting and associated LayerTreeHostImplForTesting and |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ | 320 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ |
| 320 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) | 321 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) |
| 321 | 322 |
| 322 // Some tests want to control when notify ready for activation occurs, | 323 // Some tests want to control when notify ready for activation occurs, |
| 323 // but this is not supported in the single-threaded case. | 324 // but this is not supported in the single-threaded case. |
| 324 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ | 325 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ |
| 325 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ | 326 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ |
| 326 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) | 327 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) |
| 327 | 328 |
| 328 #endif // CC_TEST_LAYER_TREE_TEST_H_ | 329 #endif // CC_TEST_LAYER_TREE_TEST_H_ |
| OLD | NEW |