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

Unified Diff: components/scheduler/child/web_task_runner_impl.cc

Issue 1727103002: Revert of Per WebViewScheduler virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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: components/scheduler/child/web_task_runner_impl.cc
diff --git a/components/scheduler/child/web_task_runner_impl.cc b/components/scheduler/child/web_task_runner_impl.cc
index 51b93dd9d451e6b194bdd512137820a5633350d5..49b5133b9ab033ba545844c97b00628226727521 100644
--- a/components/scheduler/child/web_task_runner_impl.cc
+++ b/components/scheduler/child/web_task_runner_impl.cc
@@ -7,7 +7,6 @@
#include "base/bind.h"
#include "base/location.h"
#include "components/scheduler/base/task_queue.h"
-#include "components/scheduler/base/time_domain.h"
#include "third_party/WebKit/public/platform/WebTraceLocation.h"
namespace scheduler {
@@ -41,16 +40,6 @@
base::TimeDelta::FromMillisecondsD(delayMs));
}
-double WebTaskRunnerImpl::virtualTimeSeconds() const {
- return (task_queue_->GetTimeDomain()->Now() - base::TimeTicks::UnixEpoch())
- .InSecondsF();
-}
-
-double WebTaskRunnerImpl::monotonicallyIncreasingVirtualTimeSeconds() const {
- return task_queue_->GetTimeDomain()->Now().ToInternalValue() /
- static_cast<double>(base::Time::kMicrosecondsPerSecond);
-}
-
blink::WebTaskRunner* WebTaskRunnerImpl::clone() {
return new WebTaskRunnerImpl(task_queue_);
}
« no previous file with comments | « components/scheduler/child/web_task_runner_impl.h ('k') | components/scheduler/renderer/renderer_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698