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

Unified Diff: ui/gl/sync_control_vsync_provider.h

Issue 2767293002: More reliable check for whether EGLSyncControlVSyncProvider should be instantiated. (Closed)
Patch Set: Created 3 years, 9 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/gl/gl_surface_egl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/sync_control_vsync_provider.h
diff --git a/ui/gl/sync_control_vsync_provider.h b/ui/gl/sync_control_vsync_provider.h
index 9e196538e03d3109ab867e44f1fef69040f98895..4ef76840b4e833c5669f7d9180bb773d8f06189d 100644
--- a/ui/gl/sync_control_vsync_provider.h
+++ b/ui/gl/sync_control_vsync_provider.h
@@ -23,6 +23,14 @@ class SyncControlVSyncProvider : public gfx::VSyncProvider {
void GetVSyncParameters(const UpdateVSyncCallback& callback) override;
+ static constexpr bool IsSupported() {
+#if defined(OS_LINUX)
+ return true;
+#else
+ return false;
+#endif // defined(OS_LINUX)
+ }
+
protected:
virtual bool GetSyncValues(int64_t* system_time,
int64_t* media_stream_counter,
« no previous file with comments | « ui/gl/gl_surface_egl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698