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

Side by Side 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: Rebasing Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/scheduler/renderer/renderer_scheduler_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ 5 #ifndef COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_
6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ 6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_
7 7
8 #include "base/atomicops.h" 8 #include "base/atomicops.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 Policy current_policy; 327 Policy current_policy;
328 base::TimeTicks current_policy_expiration_time; 328 base::TimeTicks current_policy_expiration_time;
329 base::TimeTicks estimated_next_frame_begin; 329 base::TimeTicks estimated_next_frame_begin;
330 base::TimeDelta compositor_frame_interval; 330 base::TimeDelta compositor_frame_interval;
331 base::TimeDelta longest_jank_free_task_duration; 331 base::TimeDelta longest_jank_free_task_duration;
332 int timer_queue_suspend_count; // TIMER_TASK_QUEUE suspended if non-zero. 332 int timer_queue_suspend_count; // TIMER_TASK_QUEUE suspended if non-zero.
333 int navigation_task_expected_count; 333 int navigation_task_expected_count;
334 ExpensiveTaskPolicy expensive_task_policy; 334 ExpensiveTaskPolicy expensive_task_policy;
335 bool renderer_hidden; 335 bool renderer_hidden;
336 bool renderer_backgrounded; 336 bool renderer_backgrounded;
337 bool renderer_suspended;
337 bool timer_queue_suspension_when_backgrounded_enabled; 338 bool timer_queue_suspension_when_backgrounded_enabled;
338 bool timer_queue_suspended_when_backgrounded; 339 bool timer_queue_suspended_when_backgrounded;
339 bool was_shutdown; 340 bool was_shutdown;
340 bool loading_tasks_seem_expensive; 341 bool loading_tasks_seem_expensive;
341 bool timer_tasks_seem_expensive; 342 bool timer_tasks_seem_expensive;
342 bool touchstart_expected_soon; 343 bool touchstart_expected_soon;
343 bool have_seen_a_begin_main_frame; 344 bool have_seen_a_begin_main_frame;
344 bool have_reported_blocking_intervention_in_current_policy; 345 bool have_reported_blocking_intervention_in_current_policy;
345 bool have_reported_blocking_intervention_since_navigation; 346 bool have_reported_blocking_intervention_since_navigation;
346 bool has_visible_render_widget_with_touch_handler; 347 bool has_visible_render_widget_with_touch_handler;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 417
417 PollableThreadSafeFlag policy_may_need_update_; 418 PollableThreadSafeFlag policy_may_need_update_;
418 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; 419 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_;
419 420
420 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); 421 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl);
421 }; 422 };
422 423
423 } // namespace scheduler 424 } // namespace scheduler
424 425
425 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ 426 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_
OLDNEW
« 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