Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: content/renderer/layout_test_dependencies.h

Issue 2075343003: Use a cc::Display for layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mailbox-test
Patch Set: layouttests-display2: rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698