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

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

Issue 2017763003: Suspend more task queues for background renderers (experimental) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | 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 2ec8887409e32dc0cde3f10e0c1f86a65b0a13b4..50b4642766fa96b2773b46a78ee293441256e64c 100644
--- a/components/scheduler/renderer/renderer_scheduler_impl.h
+++ b/components/scheduler/renderer/renderer_scheduler_impl.h
@@ -155,12 +155,14 @@ class SCHEDULER_EXPORT RendererSchedulerImpl
TaskQueuePolicy loading_queue_policy;
TaskQueuePolicy timer_queue_policy;
TaskQueuePolicy default_queue_policy;
+ TaskQueuePolicy control_queue_policy;
bool operator==(const Policy& other) const {
return compositor_queue_policy == other.compositor_queue_policy &&
loading_queue_policy == other.loading_queue_policy &&
timer_queue_policy == other.timer_queue_policy &&
- default_queue_policy == other.default_queue_policy;
+ default_queue_policy == other.default_queue_policy &&
+ control_queue_policy == other.control_queue_policy;
}
};
@@ -336,6 +338,7 @@ class SCHEDULER_EXPORT RendererSchedulerImpl
bool renderer_backgrounded;
bool timer_queue_suspension_when_backgrounded_enabled;
bool timer_queue_suspended_when_backgrounded;
+ bool queue_suspended;
Sami 2016/05/27 14:08:57 Maybe renderer_suspended would be a more descripti
hajimehoshi 2016/05/31 08:09:01 Done.
bool was_shutdown;
bool loading_tasks_seem_expensive;
bool timer_tasks_seem_expensive;
« no previous file with comments | « no previous file | components/scheduler/renderer/renderer_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698