| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 } | 132 } |
| 133 | 133 |
| 134 void DestroyLayerTreeHost(); | 134 void DestroyLayerTreeHost(); |
| 135 | 135 |
| 136 // By default, output surface recreation is synchronous. | 136 // By default, output surface recreation is synchronous. |
| 137 void RequestNewCompositorFrameSink() override; | 137 void RequestNewCompositorFrameSink() override; |
| 138 // Override this and call the base class to change what ContextProviders will | 138 // Override this and call the base class to change what ContextProviders will |
| 139 // be used (such as for pixel tests). Or override it and create your own | 139 // be used (such as for pixel tests). Or override it and create your own |
| 140 // TestCompositorFrameSink to control how it is created. | 140 // TestCompositorFrameSink to control how it is created. |
| 141 virtual std::unique_ptr<TestCompositorFrameSink> CreateCompositorFrameSink( | 141 virtual std::unique_ptr<TestCompositorFrameSink> CreateCompositorFrameSink( |
| 142 const RendererSettings& renderer_settings, |
| 142 scoped_refptr<ContextProvider> compositor_context_provider, | 143 scoped_refptr<ContextProvider> compositor_context_provider, |
| 143 scoped_refptr<ContextProvider> worker_context_provider); | 144 scoped_refptr<ContextProvider> worker_context_provider); |
| 144 // Override this and call the base class to change what ContextProvider will | 145 // Override this and call the base class to change what ContextProvider will |
| 145 // be used, such as to prevent sharing the context with the | 146 // be used, such as to prevent sharing the context with the |
| 146 // CompositorFrameSink. Or override it and create your own OutputSurface to | 147 // CompositorFrameSink. Or override it and create your own OutputSurface to |
| 147 // change what type of OutputSurface is used, such as a real OutputSurface for | 148 // change what type of OutputSurface is used, such as a real OutputSurface for |
| 148 // pixel tests or a software-compositing OutputSurface. | 149 // pixel tests or a software-compositing OutputSurface. |
| 149 std::unique_ptr<OutputSurface> CreateDisplayOutputSurfaceOnThread( | 150 std::unique_ptr<OutputSurface> CreateDisplayOutputSurfaceOnThread( |
| 150 scoped_refptr<ContextProvider> compositor_context_provider) override; | 151 scoped_refptr<ContextProvider> compositor_context_provider) override; |
| 151 | 152 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 #define REMOTE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ | 225 #define REMOTE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ |
| 225 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME); \ | 226 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME); \ |
| 226 REMOTE_TEST_F(TEST_FIXTURE_NAME) | 227 REMOTE_TEST_F(TEST_FIXTURE_NAME) |
| 227 | 228 |
| 228 // Some tests want to control when notify ready for activation occurs, | 229 // Some tests want to control when notify ready for activation occurs, |
| 229 // but this is not supported in the single-threaded case. | 230 // but this is not supported in the single-threaded case. |
| 230 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ | 231 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ |
| 231 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) | 232 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) |
| 232 | 233 |
| 233 #endif // CC_TEST_LAYER_TREE_TEST_H_ | 234 #endif // CC_TEST_LAYER_TREE_TEST_H_ |
| OLD | NEW |