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

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: 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..59c7b70134e7731b646ff7b0fc652611b3b543d0 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 VSyncProviderStub : public VSyncProvider {
danakj 2016/08/24 22:20:50 nit: FixedVsyncProvider or something? Stub implies
brianderson 2016/08/24 23:51:19 Will change the name.
sunnyps 2016/08/25 01:59:29 Do we even need a stub vsync provider? Having no v
+ public:
+ VSyncProviderStub(base::TimeTicks timebase, base::TimeDelta interval)
+ : timebase_(timebase), interval_(interval) {
+ }
+
+ ~VSyncProviderStub() 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/gfx/vsync_provider.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698