From 1a8916ed4737a143442d6201f097b702e8cab3db Mon Sep 17 00:00:00 2001 From: Heilig Benedek Date: Thu, 25 Jan 2018 14:45:01 +0100 Subject: [PATCH] Call SetAuthoritativeVsyncInterval on the Compositor directly --- atom/browser/osr/osr_render_widget_host_view.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/osr/osr_render_widget_host_view.cc b/atom/browser/osr/osr_render_widget_host_view.cc index c6af6a7b446a..abcc0e416d55 100644 --- a/atom/browser/osr/osr_render_widget_host_view.cc +++ b/atom/browser/osr/osr_render_widget_host_view.cc @@ -1204,7 +1204,7 @@ void OffScreenRenderWidgetHostView::SetupFrameRate(bool force) { frame_rate_threshold_us_ = 1000000 / frame_rate_; - GetCompositor()->vsync_manager()->SetAuthoritativeVSyncInterval( + GetCompositor()->SetAuthoritativeVSyncInterval( base::TimeDelta::FromMicroseconds(frame_rate_threshold_us_)); if (copy_frame_generator_.get()) {