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

Unified Diff: content/renderer/layout_test_dependencies.h

Issue 2162083005: Use surface copy requests for layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: piman comment 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/gpu/render_widget_compositor_unittest.cc ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/layout_test_dependencies.h
diff --git a/content/renderer/layout_test_dependencies.h b/content/renderer/layout_test_dependencies.h
index 743c61d2c7a43ce198342f5ad6e57d179f3e69a5..f9f4270a8ebf3b2ea61a47c1ef46cf10d01f4481 100644
--- a/content/renderer/layout_test_dependencies.h
+++ b/content/renderer/layout_test_dependencies.h
@@ -12,7 +12,9 @@
namespace cc {
class ContextProvider;
+class CopyOutputRequest;
class OutputSurface;
+class SwapPromise;
}
namespace gpu {
@@ -27,10 +29,16 @@ class CompositorDependencies;
class LayoutTestDependencies {
public:
virtual std::unique_ptr<cc::OutputSurface> CreateOutputSurface(
+ int32_t routing_id,
scoped_refptr<gpu::GpuChannelHost> gpu_channel,
scoped_refptr<cc::ContextProvider> compositor_context_provider,
scoped_refptr<cc::ContextProvider> worker_context_provider,
CompositorDependencies* deps) = 0;
+
+ // Returns a SwapPromise which should be queued for the next compositor frame.
+ virtual std::unique_ptr<cc::SwapPromise> RequestCopyOfOutput(
+ int32_t routing_id,
+ std::unique_ptr<cc::CopyOutputRequest> request) = 0;
};
} // namespace content
« no previous file with comments | « content/renderer/gpu/render_widget_compositor_unittest.cc ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698