Call SetAuthoritativeVsyncInterval on the Compositor directly

This commit is contained in:
Heilig Benedek 2018-01-25 14:45:01 +01:00
parent 099bbfbafb
commit 1a8916ed47

View file

@ -1204,7 +1204,7 @@ void OffScreenRenderWidgetHostView::SetupFrameRate(bool force) {
frame_rate_threshold_us_ = 1000000 / frame_rate_; frame_rate_threshold_us_ = 1000000 / frame_rate_;
GetCompositor()->vsync_manager()->SetAuthoritativeVSyncInterval( GetCompositor()->SetAuthoritativeVSyncInterval(
base::TimeDelta::FromMicroseconds(frame_rate_threshold_us_)); base::TimeDelta::FromMicroseconds(frame_rate_threshold_us_));
if (copy_frame_generator_.get()) { if (copy_frame_generator_.get()) {