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

Unified Diff: chromecast/graphics/cast_vsync_settings.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_vsync_settings.h ('k') | chromecast/graphics/cast_window_manager_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/graphics/cast_vsync_settings.cc
diff --git a/chromecast/graphics/cast_vsync_settings.cc b/chromecast/graphics/cast_vsync_settings.cc
deleted file mode 100644
index dda4870e2a8bba388338be6fa49a7a85880f2501..0000000000000000000000000000000000000000
--- a/chromecast/graphics/cast_vsync_settings.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chromecast/graphics/cast_vsync_settings.h"
-
-namespace chromecast {
-namespace {
-base::LazyInstance<CastVSyncSettings>::DestructorAtExit g_instance =
- LAZY_INSTANCE_INITIALIZER;
-} // namespace
-
-// static
-CastVSyncSettings* CastVSyncSettings::GetInstance() {
- return g_instance.Pointer();
-}
-
-base::TimeDelta CastVSyncSettings::GetVSyncInterval() const {
- return interval_;
-}
-
-void CastVSyncSettings::SetVSyncInterval(base::TimeDelta interval) {
- if (interval_ == interval)
- return;
- interval_ = interval;
- for (auto& observer : observers_)
- observer.OnVSyncIntervalChanged(interval);
-}
-
-void CastVSyncSettings::AddObserver(Observer* observer) {
- observers_.AddObserver(observer);
-}
-
-void CastVSyncSettings::RemoveObserver(Observer* observer) {
- observers_.RemoveObserver(observer);
-}
-
-// Default to 60fps until set otherwise
-CastVSyncSettings::CastVSyncSettings()
- : interval_(base::TimeDelta::FromMicroseconds(16666)) {}
-
-CastVSyncSettings::~CastVSyncSettings() = default;
-
-} // namespace chromecast
« no previous file with comments | « chromecast/graphics/cast_vsync_settings.h ('k') | chromecast/graphics/cast_window_manager_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698