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

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

Issue 1718233002: Fix computation of runtime for throttled tasks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo 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 d5eebf57fd39eb19dda53ec1cedd80b2b0036daf..d41ab6502889b6ad32fd6fa863f5ae8e2fdbe67b 100644
--- a/components/scheduler/renderer/throttling_helper.h
+++ b/components/scheduler/renderer/throttling_helper.h
@@ -16,7 +16,7 @@
namespace scheduler {
class RendererSchedulerImpl;
-class VirtualTimeDomain;
+class ThrottledTimeDomain;
class WebFrameSchedulerImpl;
class SCHEDULER_EXPORT ThrottlingHelper : public TimeDomain::Observer {
@@ -42,7 +42,7 @@ class SCHEDULER_EXPORT ThrottlingHelper : public TimeDomain::Observer {
// Removes |task_queue| from |throttled_queues_|.
void UnregisterTaskQueue(TaskQueue* task_queue);
- const VirtualTimeDomain* time_domain() const { return time_domain_.get(); }
+ const ThrottledTimeDomain* time_domain() const { return time_domain_.get(); }
static base::TimeTicks ThrottledRunTime(base::TimeTicks unthrottled_runtime);
@@ -67,7 +67,7 @@ class SCHEDULER_EXPORT ThrottlingHelper : public TimeDomain::Observer {
RendererSchedulerImpl* renderer_scheduler_; // NOT OWNED
base::TickClock* tick_clock_; // NOT OWNED
const char* tracing_category_; // NOT OWNED
- scoped_ptr<VirtualTimeDomain> time_domain_;
+ scoped_ptr<ThrottledTimeDomain> 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