| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_TEST_HOOKS_H_ | 5 #ifndef CC_TEST_TEST_HOOKS_H_ |
| 6 #define CC_TEST_TEST_HOOKS_H_ | 6 #define CC_TEST_TEST_HOOKS_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "cc/animation/animation_delegate.h" | 9 #include "cc/animation/animation_delegate.h" |
| 10 #include "cc/trees/layer_tree_host.h" | 10 #include "cc/trees/layer_tree_host.h" |
| 11 #include "cc/trees/layer_tree_host_impl.h" | 11 #include "cc/trees/layer_tree_host_impl.h" |
| 12 | 12 |
| 13 namespace cc { | 13 namespace cc { |
| 14 | 14 |
| 15 class CompositorFrame; | 15 class CompositorFrame; |
| 16 | 16 |
| 17 namespace proto { | |
| 18 class CompositorMessageToImpl; | |
| 19 } | |
| 20 | |
| 21 // Used by test stubs to notify the test when something interesting happens. | 17 // Used by test stubs to notify the test when something interesting happens. |
| 22 class TestHooks : public AnimationDelegate { | 18 class TestHooks : public AnimationDelegate { |
| 23 public: | 19 public: |
| 24 TestHooks(); | 20 TestHooks(); |
| 25 ~TestHooks() override; | 21 ~TestHooks() override; |
| 26 | 22 |
| 27 // Compositor thread hooks. | 23 // Compositor thread hooks. |
| 28 virtual void CreateResourceAndRasterBufferProvider( | 24 virtual void CreateResourceAndRasterBufferProvider( |
| 29 LayerTreeHostImpl* host_impl, | 25 LayerTreeHostImpl* host_impl, |
| 30 std::unique_ptr<RasterBufferProvider>* raster_buffer_provider, | 26 std::unique_ptr<RasterBufferProvider>* raster_buffer_provider, |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // OutputSurface indirections to the LayerTreeTest, that can be further | 112 // OutputSurface indirections to the LayerTreeTest, that can be further |
| 117 // overridden. | 113 // overridden. |
| 118 virtual void RequestNewCompositorFrameSink() = 0; | 114 virtual void RequestNewCompositorFrameSink() = 0; |
| 119 virtual std::unique_ptr<OutputSurface> CreateDisplayOutputSurfaceOnThread( | 115 virtual std::unique_ptr<OutputSurface> CreateDisplayOutputSurfaceOnThread( |
| 120 scoped_refptr<ContextProvider> compositor_context_provider) = 0; | 116 scoped_refptr<ContextProvider> compositor_context_provider) = 0; |
| 121 }; | 117 }; |
| 122 | 118 |
| 123 } // namespace cc | 119 } // namespace cc |
| 124 | 120 |
| 125 #endif // CC_TEST_TEST_HOOKS_H_ | 121 #endif // CC_TEST_TEST_HOOKS_H_ |
| OLD | NEW |