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

Unified Diff: chromecast/graphics/cast_window_manager_aura.cc

Issue 2801163002: Deletes NativeViewGLSurfaceEGL::Initialize(gfx::VSyncProvider). (Closed)
Patch Set: fixes DirectCompositionSurfaceTest Created 3 years, 8 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 | « chromecast/graphics/cast_window_manager_aura.h ('k') | gpu/ipc/service/child_window_surface_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/graphics/cast_window_manager_aura.cc
diff --git a/chromecast/graphics/cast_window_manager_aura.cc b/chromecast/graphics/cast_window_manager_aura.cc
index 4fe2008504daaf8187544fe08cd9bb781f6900cf..e60c9a0c4867117faf31c4f038231c90c7d2ca1c 100644
--- a/chromecast/graphics/cast_window_manager_aura.cc
+++ b/chromecast/graphics/cast_window_manager_aura.cc
@@ -211,10 +211,6 @@ void CastWindowManagerAura::Setup() {
capture_client_.reset(
new aura::client::DefaultCaptureClient(window_tree_host_->window()));
- CastVSyncSettings::GetInstance()->AddObserver(this);
- window_tree_host_->compositor()->SetAuthoritativeVSyncInterval(
- CastVSyncSettings::GetInstance()->GetVSyncInterval());
-
window_tree_host_->Show();
}
@@ -222,7 +218,6 @@ void CastWindowManagerAura::TearDown() {
if (!window_tree_host_) {
return;
}
- CastVSyncSettings::GetInstance()->RemoveObserver(this);
capture_client_.reset();
aura::client::SetWindowParentingClient(window_tree_host_->window(), nullptr);
aura::client::SetActivationClient(window_tree_host_->window(), nullptr);
@@ -258,9 +253,4 @@ void CastWindowManagerAura::AddWindow(gfx::NativeView child) {
}
}
-void CastWindowManagerAura::OnVSyncIntervalChanged(base::TimeDelta interval) {
- DCHECK(window_tree_host_.get());
- window_tree_host_->compositor()->SetAuthoritativeVSyncInterval(interval);
-}
-
} // namespace chromecast
« no previous file with comments | « chromecast/graphics/cast_window_manager_aura.h ('k') | gpu/ipc/service/child_window_surface_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698