OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CONTENT_RENDER_LAYOUT_TEST_DEPENDENCIES_H_ | 5 #ifndef CONTENT_RENDER_LAYOUT_TEST_DEPENDENCIES_H_ |
6 #define CONTENT_RENDER_LAYOUT_TEST_DEPENDENCIES_H_ | 6 #define CONTENT_RENDER_LAYOUT_TEST_DEPENDENCIES_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 | 12 |
13 namespace cc { | 13 namespace cc { |
14 class ContextProvider; | 14 class ContextProvider; |
15 class OutputSurface; | 15 class OutputSurface; |
16 } | 16 } |
17 | 17 |
| 18 namespace gpu { |
| 19 class GpuChannelHost; |
| 20 } |
| 21 |
18 namespace content { | 22 namespace content { |
| 23 class CompositorDependencies; |
19 | 24 |
20 // This class allows injection of LayoutTest-specific behaviour to the | 25 // This class allows injection of LayoutTest-specific behaviour to the |
21 // RenderThreadImpl. | 26 // RenderThreadImpl. |
22 class LayoutTestDependencies { | 27 class LayoutTestDependencies { |
23 public: | 28 public: |
24 virtual std::unique_ptr<cc::OutputSurface> CreateOutputSurface( | 29 virtual std::unique_ptr<cc::OutputSurface> CreateOutputSurface( |
25 uint32_t output_surface_id, | 30 scoped_refptr<gpu::GpuChannelHost> gpu_channel, |
26 scoped_refptr<cc::ContextProvider> context_provider, | 31 scoped_refptr<cc::ContextProvider> compositor_context_provider, |
27 scoped_refptr<cc::ContextProvider> worker_context_provider) = 0; | 32 scoped_refptr<cc::ContextProvider> worker_context_provider, |
| 33 CompositorDependencies* deps) = 0; |
28 }; | 34 }; |
29 | 35 |
30 } // namespace content | 36 } // namespace content |
31 | 37 |
32 #endif // CONTENT_RENDER_LAYOUT_TEST_DEPENDENCIES_H_ | 38 #endif // CONTENT_RENDER_LAYOUT_TEST_DEPENDENCIES_H_ |
OLD | NEW |