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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 virtual void Layout() {} | 57 virtual void Layout() {} |
58 virtual void DidInitializeOutputSurface(bool succeeded) {} | 58 virtual void DidInitializeOutputSurface(bool succeeded) {} |
59 virtual void DidFailToInitializeOutputSurface() {} | 59 virtual void DidFailToInitializeOutputSurface() {} |
60 virtual void DidAddAnimation() {} | 60 virtual void DidAddAnimation() {} |
61 virtual void DidCommit() {} | 61 virtual void DidCommit() {} |
62 virtual void DidCommitAndDrawFrame() {} | 62 virtual void DidCommitAndDrawFrame() {} |
63 virtual void DidCompleteSwapBuffers() {} | 63 virtual void DidCompleteSwapBuffers() {} |
64 virtual void ScheduleComposite() {} | 64 virtual void ScheduleComposite() {} |
65 virtual void DidDeferCommit() {} | 65 virtual void DidDeferCommit() {} |
66 virtual bool CanActivatePendingTree(LayerTreeHostImpl* host_impl); | 66 virtual bool CanActivatePendingTree(LayerTreeHostImpl* host_impl); |
| 67 virtual bool CanActivatePendingTreeIfNeeded(LayerTreeHostImpl* host_impl); |
67 virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl, | 68 virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl, |
68 bool visible) {} | 69 bool visible) {} |
69 | 70 |
70 // Implementation of AnimationDelegate: | 71 // Implementation of AnimationDelegate: |
71 virtual void NotifyAnimationStarted(double time) OVERRIDE {} | 72 virtual void NotifyAnimationStarted(double time) OVERRIDE {} |
72 virtual void NotifyAnimationFinished(double time) OVERRIDE {} | 73 virtual void NotifyAnimationFinished(double time) OVERRIDE {} |
73 | 74 |
74 virtual scoped_ptr<OutputSurface> CreateOutputSurface() = 0; | 75 virtual scoped_ptr<OutputSurface> CreateOutputSurface() = 0; |
75 virtual scoped_refptr<cc::ContextProvider> | 76 virtual scoped_refptr<cc::ContextProvider> |
76 OffscreenContextProviderForMainThread() = 0; | 77 OffscreenContextProviderForMainThread() = 0; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 234 |
234 #define SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) \ | 235 #define SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) \ |
235 SINGLE_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ | 236 SINGLE_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ |
236 MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) | 237 MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) |
237 | 238 |
238 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ | 239 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ |
239 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ | 240 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ |
240 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) | 241 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) |
241 | 242 |
242 #endif // CC_TEST_LAYER_TREE_TEST_H_ | 243 #endif // CC_TEST_LAYER_TREE_TEST_H_ |
OLD | NEW |