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

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

Issue 1832673002: Add testRunner.runIdleTasks() to force idle tasks to run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: rebase Created 4 years, 8 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 | « components/scheduler/BUILD.gn ('k') | components/scheduler/renderer/renderer_scheduler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/renderer/renderer_scheduler_impl.h
diff --git a/components/scheduler/renderer/renderer_scheduler_impl.h b/components/scheduler/renderer/renderer_scheduler_impl.h
index 8805cb6d13b73fb3ccea164cfde85d699b738327..6c1628fc5aac3965717d89b8785bbf4ad988611f 100644
--- a/components/scheduler/renderer/renderer_scheduler_impl.h
+++ b/components/scheduler/renderer/renderer_scheduler_impl.h
@@ -106,6 +106,9 @@ class SCHEDULER_EXPORT RendererSchedulerImpl
TaskCostEstimator* GetTimerTaskCostEstimatorForTesting();
IdleTimeEstimator* GetIdleTimeEstimatorForTesting();
base::TimeTicks CurrentIdleTaskDeadlineForTesting() const;
+ void RunIdleTasksForTesting(const base::Closure& callback);
+ void EndIdlePeriodForTesting(const base::Closure& callback,
+ base::TimeTicks time_remaining);
base::TickClock* tick_clock() const;
@@ -343,6 +346,7 @@ class SCHEDULER_EXPORT RendererSchedulerImpl
bool has_visible_render_widget_with_touch_handler;
bool begin_frame_not_expected_soon;
bool expensive_task_blocking_allowed;
+ bool in_idle_period_for_testing;
std::set<WebViewSchedulerImpl*> web_view_schedulers_; // Not owned.
};
« no previous file with comments | « components/scheduler/BUILD.gn ('k') | components/scheduler/renderer/renderer_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698