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

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: forward flag 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
« no previous file with comments | « ui/gfx/BUILD.gn ('k') | ui/gfx/vsync_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
sunnyps 2016/08/25 01:59:29 Do we even need FixedVSyncProvider? If a vsync pro
danakj 2016/08/25 02:04:52 BeginFrameArgs::DefaultInterval is used all over t
brianderson 2016/08/25 05:09:50 I did it this way because I like the decision to u
+ 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698