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

Unified Diff: ui/gl/sync_control_vsync_provider.cc

Issue 1995963002: Fix "unused variable" warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo accidental change Created 4 years, 7 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/sync_control_vsync_provider.h ('k') | ui/views/test/native_widget_factory_desktop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/sync_control_vsync_provider.cc
diff --git a/ui/gl/sync_control_vsync_provider.cc b/ui/gl/sync_control_vsync_provider.cc
index c3ecb9563e77df5a40c64f790c33d09fa8f564b7..b363affa9f62e17527a42b402aced7e1bbc05a96 100644
--- a/ui/gl/sync_control_vsync_provider.cc
+++ b/ui/gl/sync_control_vsync_provider.cc
@@ -25,12 +25,13 @@ const double kRelativeIntervalDifferenceThreshold = 0.05;
namespace gfx {
-SyncControlVSyncProvider::SyncControlVSyncProvider()
- : VSyncProvider(), last_media_stream_counter_(0), invalid_msc_(false) {
+SyncControlVSyncProvider::SyncControlVSyncProvider() : VSyncProvider() {
+#if defined(OS_LINUX)
sadrul 2016/05/19 13:10:06 It looks like this whole file is for linux only. P
Peter Kasting 2016/05/19 18:03:45 Yeah, I saw that -- it looks like we want to defin
// On platforms where we can't get an accurate reading on the refresh
// rate we fall back to the assumption that we're displaying 60 frames
// per second.
last_good_interval_ = base::TimeDelta::FromSeconds(1) / 60;
+#endif
}
SyncControlVSyncProvider::~SyncControlVSyncProvider() {}
« no previous file with comments | « ui/gl/sync_control_vsync_provider.h ('k') | ui/views/test/native_widget_factory_desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698