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

Unified Diff: ash/display/display_controller.cc

Issue 1016033006: Enable BeginFrame scheduling on aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enable BeginFrame scheduling under flag Created 5 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
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.cc ('k') | cc/base/switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_controller.cc
diff --git a/ash/display/display_controller.cc b/ash/display/display_controller.cc
index ec9e478c0c3b87d2a56e645b17afbca941459bd4..5cc4596c39ad64f5206087ecaf8d9648b68eb0a8 100644
--- a/ash/display/display_controller.cc
+++ b/ash/display/display_controller.cc
@@ -39,7 +39,6 @@
#include "ui/aura/window_tracker.h"
#include "ui/aura/window_tree_host.h"
#include "ui/compositor/compositor.h"
-#include "ui/compositor/compositor_vsync_manager.h"
#include "ui/gfx/display.h"
#include "ui/gfx/screen.h"
#include "ui/wm/core/coordinate_conversion.h"
@@ -153,9 +152,9 @@ void SetDisplayPropertiesOnHost(AshWindowTreeHost* ash_host,
DisplayMode mode =
GetDisplayManager()->GetActiveModeForDisplayId(display.id());
if (mode.refresh_rate > 0.0f) {
- host->compositor()->vsync_manager()->SetAuthoritativeVSyncInterval(
- base::TimeDelta::FromMicroseconds(
- base::Time::kMicrosecondsPerSecond / mode.refresh_rate));
+ host->compositor()->SetAuthoritativeVSyncInterval(
+ base::TimeDelta::FromMicroseconds(base::Time::kMicrosecondsPerSecond /
+ mode.refresh_rate));
}
// Just movnig the display requires the full redraw.
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.cc ('k') | cc/base/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698