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

Unified Diff: content/browser/compositor/browser_compositor_output_surface.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/browser_compositor_output_surface.cc
diff --git a/content/browser/compositor/browser_compositor_output_surface.cc b/content/browser/compositor/browser_compositor_output_surface.cc
index 66183edd4d410ba9af3b3ff621f29128581b135e..05d0016a01dac30a81fa2b11b7f7100f3c087347 100644
--- a/content/browser/compositor/browser_compositor_output_surface.cc
+++ b/content/browser/compositor/browser_compositor_output_surface.cc
@@ -88,9 +88,6 @@ bool BrowserCompositorOutputSurface::BindToClient(
if (!OutputSurface::BindToClient(client))
return false;
- // Pass begin frame source up to Display to use for DisplayScheduler.
- client->SetBeginFrameSource(synthetic_begin_frame_source_.get());
-
// Don't want vsync notifications until there is a client.
if (!use_begin_frame_scheduling_)
vsync_manager_->AddObserver(this);
@@ -127,6 +124,11 @@ void BrowserCompositorOutputSurface::OnUpdateVSyncParametersFromGpu(
vsync_manager_->UpdateVSyncParameters(timebase, interval);
}
+cc::BeginFrameSource* BrowserCompositorOutputSurface::GetBeginFrameSource() {
+ // The BeginFrameSource for the Display and DisplayScheduler to use.
+ return synthetic_begin_frame_source_.get();
+}
+
void BrowserCompositorOutputSurface::SetReflector(ReflectorImpl* reflector) {
// Software mirroring is done by doing a GL copy out of the framebuffer - if
// we have overlays then that data will be missing.

Powered by Google App Engine
This is Rietveld 408576698