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

Unified Diff: components/scheduler/renderer/throttling_helper.h

Issue 1743813002: Revert of [cherrypick] Fix computation of runtime for throttled tasks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
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/renderer/throttling_helper.h
diff --git a/components/scheduler/renderer/throttling_helper.h b/components/scheduler/renderer/throttling_helper.h
index 8c67338f3cb20489a4d70c4783b8a298773a8256..69a47762ebbd846f9ff80066d81c3627aaa63190 100644
--- a/components/scheduler/renderer/throttling_helper.h
+++ b/components/scheduler/renderer/throttling_helper.h
@@ -16,7 +16,7 @@
namespace scheduler {
class RendererSchedulerImpl;
-class ThrottledTimeDomain;
+class VirtualTimeDomain;
class WebFrameSchedulerImpl;
class SCHEDULER_EXPORT ThrottlingHelper : public TimeDomain::Observer {
@@ -33,7 +33,7 @@
void Throttle(TaskQueue* task_queue);
void Unthrottle(TaskQueue* task_queue);
- const ThrottledTimeDomain* time_domain() const { return time_domain_.get(); }
+ const VirtualTimeDomain* time_domain() const { return time_domain_.get(); }
static base::TimeTicks ThrottledRunTime(base::TimeTicks unthrottled_runtime);
@@ -52,7 +52,7 @@
RendererSchedulerImpl* renderer_scheduler_; // NOT OWNED
base::TickClock* tick_clock_; // NOT OWNED
const char* tracing_category_; // NOT OWNED
- scoped_ptr<ThrottledTimeDomain> time_domain_;
+ scoped_ptr<VirtualTimeDomain> time_domain_;
CancelableClosureHolder suspend_timers_when_backgrounded_closure_;
base::TimeTicks pending_pump_throttled_tasks_runtime_;
« no previous file with comments | « components/scheduler/renderer/throttled_time_domain.cc ('k') | components/scheduler/renderer/throttling_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698