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

Unified Diff: app/hi_res_timer_manager.h

Issue 3848002: Fix regression where high resolution timers could be activated even under... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: nonono - fix thread safety problem, simplify! Created 10 years, 2 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: app/hi_res_timer_manager.h
===================================================================
--- app/hi_res_timer_manager.h (revision 62903)
+++ app/hi_res_timer_manager.h (working copy)
@@ -18,6 +18,9 @@
// SystemMonitor::PowerObserver:
void OnPowerStateChange(bool on_battery_power);
+ // Returns true if the hi resolution clock could be used right now.
+ bool using_hi_res_clock() const { return hi_res_clock_used_; }
+
private:
// Enable or disable the faster multimedia timer.
void UseHiResClock(bool use);

Powered by Google App Engine
This is Rietveld 408576698