Index: ash/display/display_controller.cc |
diff --git a/ash/display/display_controller.cc b/ash/display/display_controller.cc |
index 7b7cc5882e5592a336e718a28d2fa3c442bb5215..c331b4fa6a3778833277e79d839aac07dfb49921 100644 |
--- a/ash/display/display_controller.cc |
+++ b/ash/display/display_controller.cc |
@@ -119,6 +119,16 @@ void SetDisplayPropertiesOnHostWindow(aura::RootWindow* root, |
scoped_ptr<aura::RootWindowTransformer> transformer( |
internal::CreateRootWindowTransformerForDisplay(root->window(), display)); |
root->host()->SetRootWindowTransformer(transformer.Pass()); |
+ gfx::Size resolution; |
+ float frame_rate; |
+ if (GetDisplayManager()->GetSelectedResolutionForDisplayId( |
+ display.id(), &resolution, &frame_rate)) { |
+ root->host()->compositor()->OnUpdateVSyncParameters( |
+ base::TimeTicks(), |
+ base::TimeDelta::FromMicroseconds(frame_rate * |
+ base::Time::kMicrosecondsPerSecond), |
+ true); |
+ } |
} |
} // namespace |