Call SetAuthoritativeVsyncInterval on the Compositor directly
This commit is contained in:
parent
099bbfbafb
commit
1a8916ed47
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in a new issue