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

Unified Diff: content/browser/compositor/gpu_process_transport_factory.cc

Issue 2029323004: Get rid of virtual Display::CreateScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@onscreendisplayclient
Patch Set: displaytest: androids Created 4 years, 7 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
Index: content/browser/compositor/gpu_process_transport_factory.cc
diff --git a/content/browser/compositor/gpu_process_transport_factory.cc b/content/browser/compositor/gpu_process_transport_factory.cc
index d446ca8fc7c2fbbb12998e9419922e034208946c..085da089a66968b87df91bdffaaade1e20c054cc 100644
--- a/content/browser/compositor/gpu_process_transport_factory.cc
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
@@ -489,12 +489,14 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
#endif
// The Display owns and uses the |display_output_surface| created above.
+ auto* begin_frame_source = display_output_surface->GetBeginFrameSource();
data->display = base::MakeUnique<cc::Display>(
surface_manager_.get(), HostSharedBitmapManager::current(),
BrowserGpuMemoryBufferManager::current(),
compositor->GetRendererSettings(),
compositor->surface_id_allocator()->id_namespace(),
- compositor->task_runner().get(), std::move(display_output_surface));
+ compositor->task_runner().get(), begin_frame_source,
+ std::move(display_output_surface));
// The |delegated_output_surface| is given back to the compositor, it
// delegates to the Display as its root surface. Importantly, it shares the

Powered by Google App Engine
This is Rietveld 408576698