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

Unified Diff: ui/gl/sync_control_vsync_provider.h

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
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 8314ed2433ec0245b5f079618e53184b51259524..7dfbf15a89bb18f078f5bfb3e8015a39f820a72e 100644
--- a/ui/gl/sync_control_vsync_provider.h
+++ b/ui/gl/sync_control_vsync_provider.h
@@ -31,16 +31,18 @@ class SyncControlVSyncProvider : public VSyncProvider {
virtual bool GetMscRate(int32_t* numerator, int32_t* denominator) = 0;
private:
+#if defined(OS_LINUX)
base::TimeTicks last_timebase_;
- uint64_t last_media_stream_counter_;
+ uint64_t last_media_stream_counter_ = 0;
base::TimeDelta last_good_interval_;
- bool invalid_msc_;
+ bool invalid_msc_ = false;
// A short history of the last few computed intervals.
// We use this to filter out the noise in the computation resulting
// from configuration change (monitor reconfiguration, moving windows
// between monitors, suspend and resume, etc.).
std::queue<base::TimeDelta> last_computed_intervals_;
+#endif
DISALLOW_COPY_AND_ASSIGN(SyncControlVSyncProvider);
};

Powered by Google App Engine
This is Rietveld 408576698