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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2299003002: Remove uses of external begin frame sources (Closed)
Patch Set: Remove Blimp conditional Created 4 years, 3 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 4170eb015a85be8cacdf8eb6db9dfa51d67abd81..64bf015d7a8cefb8e280e2707f49e7c46e958620 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -1834,7 +1834,9 @@ RenderThreadImpl::CreateCompositorOutputSurface(
if (vulkan_context_provider) {
DCHECK(!layout_test_mode());
return base::MakeUnique<CompositorOutputSurface>(
- routing_id, output_surface_id, std::move(vulkan_context_provider),
+ routing_id, output_surface_id,
+ CreateExternalBeginFrameSource(routing_id),
+ std::move(vulkan_context_provider),
std::move(frame_swap_message_queue));
}
}
@@ -1857,7 +1859,8 @@ RenderThreadImpl::CreateCompositorOutputSurface(
if (use_software) {
DCHECK(!layout_test_mode());
return base::MakeUnique<CompositorOutputSurface>(
- routing_id, output_surface_id, nullptr, nullptr,
+ routing_id, output_surface_id,
+ CreateExternalBeginFrameSource(routing_id), nullptr, nullptr,
std::move(frame_swap_message_queue));
}
@@ -1910,14 +1913,16 @@ RenderThreadImpl::CreateCompositorOutputSurface(
if (sync_compositor_message_filter_) {
return base::MakeUnique<SynchronousCompositorOutputSurface>(
std::move(context_provider), std::move(worker_context_provider),
- routing_id, output_surface_id, sync_compositor_message_filter_.get(),
+ routing_id, output_surface_id,
+ CreateExternalBeginFrameSource(routing_id),
+ sync_compositor_message_filter_.get(),
std::move(frame_swap_message_queue));
}
#endif
-
- return base::MakeUnique<CompositorOutputSurface>(
- routing_id, output_surface_id, std::move(context_provider),
- std::move(worker_context_provider), std::move(frame_swap_message_queue));
+ return base::WrapUnique(new CompositorOutputSurface(
+ routing_id, output_surface_id, CreateExternalBeginFrameSource(routing_id),
+ std::move(context_provider), std::move(worker_context_provider),
+ std::move(frame_swap_message_queue)));
}
std::unique_ptr<cc::SwapPromise>
« 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