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

Unified Diff: ui/compositor/test/in_process_context_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: ui/compositor/test/in_process_context_factory.cc
diff --git a/ui/compositor/test/in_process_context_factory.cc b/ui/compositor/test/in_process_context_factory.cc
index 3df283249cf99e744d3856da24ec014ce64b7dba..b88e3f39fb6981134df80d6243dba1e1cef79f02 100644
--- a/ui/compositor/test/in_process_context_factory.cc
+++ b/ui/compositor/test/in_process_context_factory.cc
@@ -152,6 +152,7 @@ void InProcessContextFactory::CreateOutputSurface(
std::unique_ptr<cc::SyntheticBeginFrameSource> begin_frame_source(
new cc::SyntheticBeginFrameSource(compositor->task_runner().get(),
cc::BeginFrameArgs::DefaultInterval()));
+ auto* begin_frame_source_raw = begin_frame_source.get();
if (use_test_surface_) {
bool flipped_output_surface = false;
@@ -169,7 +170,8 @@ void InProcessContextFactory::CreateOutputSurface(
surface_manager_, GetSharedBitmapManager(), GetGpuMemoryBufferManager(),
compositor->GetRendererSettings(),
compositor->surface_id_allocator()->id_namespace(),
- compositor->task_runner().get(), std::move(display_output_surface)));
+ compositor->task_runner().get(), begin_frame_source_raw,
+ std::move(display_output_surface)));
std::unique_ptr<cc::SurfaceDisplayOutputSurface> surface_output_surface(
new cc::SurfaceDisplayOutputSurface(
surface_manager_, compositor->surface_id_allocator(), display.get(),
« cc/surfaces/display.cc ('K') | « content/browser/renderer_host/compositor_impl_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698