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

Unified Diff: webkit/glue/webkitclient_impl.cc

Issue 7699001: Cleanup: remove ifdefs for USE_MONOTONIC_CLOCK_FOR_TIMER_SCHEDULING. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « webkit/glue/webkitclient_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webkitclient_impl.cc
diff --git a/webkit/glue/webkitclient_impl.cc b/webkit/glue/webkitclient_impl.cc
index 2192c37ccb0116b9b73a694787224f21daed468c..fb1c98d60631d1b3b9791c9b52e05b29a64c78fe 100644
--- a/webkit/glue/webkitclient_impl.cc
+++ b/webkit/glue/webkitclient_impl.cc
@@ -501,18 +501,8 @@ void WebKitClientImpl::setSharedTimerFiredFunction(void (*func)()) {
shared_timer_func_ = func;
}
-#ifndef WEBKIT_USE_MONOTONIC_CLOCK_FOR_TIMER_SCHEDULING
-void WebKitClientImpl::setSharedTimerFireTime(double fire_time) {
- setSharedTimerFireInterval(fire_time - currentTime());
-}
-#endif
-
void WebKitClientImpl::setSharedTimerFireInterval(double interval_seconds) {
-#ifdef WEBKIT_USE_MONOTONIC_CLOCK_FOR_TIMER_SCHEDULING
shared_timer_fire_time_ = interval_seconds + monotonicallyIncreasingTime();
-#else
- shared_timer_fire_time_ = interval_seconds + currentTime();
-#endif
if (shared_timer_suspended_)
return;
« no previous file with comments | « webkit/glue/webkitclient_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698