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

Unified Diff: chromecast/graphics/cast_vsync_settings.h

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/BUILD.gn ('k') | chromecast/graphics/cast_vsync_settings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/graphics/cast_vsync_settings.h
diff --git a/chromecast/graphics/cast_vsync_settings.h b/chromecast/graphics/cast_vsync_settings.h
deleted file mode 100644
index 48211ac722a236afc6d9935d28a9e73cb5ebbe0c..0000000000000000000000000000000000000000
--- a/chromecast/graphics/cast_vsync_settings.h
+++ /dev/null
@@ -1,48 +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.
-
-#ifndef CHROMECAST_GRAPHICS_CAST_VSYNC_SETTINGS_H_
-#define CHROMECAST_GRAPHICS_CAST_VSYNC_SETTINGS_H_
-
-#include "base/lazy_instance.h"
-#include "base/macros.h"
-#include "base/observer_list.h"
-#include "base/time/time.h"
-
-namespace chromecast {
-
-// Provides a central place to manage VSync interval, supports observers
-// to be notified of changes.
-// TODO(halliwell): plumb this via Ozone or ui::Display instead.
-class CastVSyncSettings {
- public:
- class Observer {
- public:
- virtual ~Observer() {}
- virtual void OnVSyncIntervalChanged(base::TimeDelta interval) = 0;
- };
-
- static CastVSyncSettings* GetInstance();
-
- base::TimeDelta GetVSyncInterval() const;
- void SetVSyncInterval(base::TimeDelta interval);
-
- void AddObserver(Observer* observer);
- void RemoveObserver(Observer* observer);
-
- private:
- friend struct base::LazyInstanceTraitsBase<CastVSyncSettings>;
-
- CastVSyncSettings();
- ~CastVSyncSettings();
-
- base::TimeDelta interval_;
- base::ObserverList<Observer> observers_;
-
- DISALLOW_COPY_AND_ASSIGN(CastVSyncSettings);
-};
-
-} // namespace chromecast
-
-#endif // CHROMECAST_GRAPHICS_CAST_VSYNC_SETTINGS_H_
« no previous file with comments | « chromecast/graphics/BUILD.gn ('k') | chromecast/graphics/cast_vsync_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698