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

Unified Diff: content/renderer/render_thread_impl.cc

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/render_thread_impl.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index efeb1e3979d593c4af84b00c2c668e76c7af3bd9..4ce4b528e929f091e0e443102e9a2557cc38cb18 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -41,6 +41,7 @@
#include "cc/blink/web_external_bitmap_impl.h"
#include "cc/blink/web_layer_impl.h"
#include "cc/output/buffer_to_texture_target_map.h"
+#include "cc/output/copy_output_request.h"
#include "cc/output/output_surface.h"
#include "cc/output/vulkan_in_process_context_provider.h"
#include "cc/raster/task_graph_runner.h"
@@ -1907,7 +1908,7 @@ RenderThreadImpl::CreateCompositorOutputSurface(
if (layout_test_deps_) {
return layout_test_deps_->CreateOutputSurface(
- std::move(gpu_channel_host), std::move(context_provider),
+ routing_id, std::move(gpu_channel_host), std::move(context_provider),
std::move(worker_context_provider), this);
}
@@ -1925,6 +1926,14 @@ RenderThreadImpl::CreateCompositorOutputSurface(
std::move(worker_context_provider), std::move(frame_swap_message_queue)));
}
+std::unique_ptr<cc::SwapPromise>
+RenderThreadImpl::RequestCopyOfOutputForLayoutTest(
+ int32_t routing_id,
+ std::unique_ptr<cc::CopyOutputRequest> request) {
+ DCHECK(layout_test_deps_);
+ return layout_test_deps_->RequestCopyOfOutput(routing_id, std::move(request));
+}
+
blink::WebMediaStreamCenter* RenderThreadImpl::CreateMediaStreamCenter(
blink::WebMediaStreamCenterClient* client) {
#if defined(ENABLE_WEBRTC)
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698