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

Unified Diff: ui/gfx/vsync_provider.h

Issue 2277883003: gl: Disable SGI_video_sync by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Stub -> Fixed; pull up command line check; Created 4 years, 4 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
Index: ui/gfx/vsync_provider.h
diff --git a/ui/gfx/vsync_provider.h b/ui/gfx/vsync_provider.h
index 90464bcbf6841ec89840fcca970756338ff39b21..74542fb3d8034393d346daf3ee526585a6d2cf4a 100644
--- a/ui/gfx/vsync_provider.h
+++ b/ui/gfx/vsync_provider.h
@@ -28,6 +28,22 @@ class GFX_EXPORT VSyncProvider {
virtual void GetVSyncParameters(const UpdateVSyncCallback& callback) = 0;
};
+// Provides a contant timebase and interval.
+class GFX_EXPORT FixedVSyncProvider : public VSyncProvider {
+ public:
+ FixedVSyncProvider(base::TimeTicks timebase, base::TimeDelta interval)
+ : timebase_(timebase), interval_(interval) {
+ }
+
+ ~FixedVSyncProvider() override {}
+
+ void GetVSyncParameters(const UpdateVSyncCallback& callback) override;
+
+ private:
+ base::TimeTicks timebase_;
+ base::TimeDelta interval_;
+};
+
} // namespace gfx
#endif // UI_GFX_VSYNC_PROVIDER_H_
« no previous file with comments | « ui/gfx/BUILD.gn ('k') | ui/gfx/vsync_provider.cc » ('j') | ui/gl/gl_switches.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698