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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h

Issue 2778123003: [scheduler] Add WakeupBudgetPool. (Closed)
Patch Set: First meaningful version Created 3 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 unified diff | Download patch
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 THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER _IMPL_H_ 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER _IMPL_H_
6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER _IMPL_H_ 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER _IMPL_H_
7 7
8 #include "base/atomicops.h" 8 #include "base/atomicops.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 TaskQueue* task_queue, 373 TaskQueue* task_queue,
374 TaskQueue::QueueEnabledVoter* task_queue_enabled_voter, 374 TaskQueue::QueueEnabledVoter* task_queue_enabled_voter,
375 const TaskQueuePolicy& old_task_queue_policy, 375 const TaskQueuePolicy& old_task_queue_policy,
376 const TaskQueuePolicy& new_task_queue_policy) const; 376 const TaskQueuePolicy& new_task_queue_policy) const;
377 377
378 static const char* ExpensiveTaskPolicyToString( 378 static const char* ExpensiveTaskPolicyToString(
379 ExpensiveTaskPolicy expensive_task_policy); 379 ExpensiveTaskPolicy expensive_task_policy);
380 380
381 bool ShouldDisableThrottlingBecauseOfAudio(base::TimeTicks now); 381 bool ShouldDisableThrottlingBecauseOfAudio(base::TimeTicks now);
382 382
383 void AddQueueToWakeupBudgetPool(TaskQueue* queue);
384
383 SchedulerHelper helper_; 385 SchedulerHelper helper_;
384 IdleHelper idle_helper_; 386 IdleHelper idle_helper_;
385 IdleCanceledDelayedTaskSweeper idle_canceled_delayed_task_sweeper_; 387 IdleCanceledDelayedTaskSweeper idle_canceled_delayed_task_sweeper_;
386 std::unique_ptr<TaskQueueThrottler> task_queue_throttler_; 388 std::unique_ptr<TaskQueueThrottler> task_queue_throttler_;
387 RenderWidgetSignals render_widget_scheduler_signals_; 389 RenderWidgetSignals render_widget_scheduler_signals_;
388 390
389 const scoped_refptr<TaskQueue> control_task_runner_; 391 const scoped_refptr<TaskQueue> control_task_runner_;
390 const scoped_refptr<TaskQueue> compositor_task_runner_; 392 const scoped_refptr<TaskQueue> compositor_task_runner_;
391 std::unique_ptr<TaskQueue::QueueEnabledVoter> 393 std::unique_ptr<TaskQueue::QueueEnabledVoter>
392 compositor_task_runner_enabled_voter_; 394 compositor_task_runner_enabled_voter_;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 bool have_seen_a_begin_main_frame; 454 bool have_seen_a_begin_main_frame;
453 bool have_reported_blocking_intervention_in_current_policy; 455 bool have_reported_blocking_intervention_in_current_policy;
454 bool have_reported_blocking_intervention_since_navigation; 456 bool have_reported_blocking_intervention_since_navigation;
455 bool has_visible_render_widget_with_touch_handler; 457 bool has_visible_render_widget_with_touch_handler;
456 bool begin_frame_not_expected_soon; 458 bool begin_frame_not_expected_soon;
457 bool in_idle_period_for_testing; 459 bool in_idle_period_for_testing;
458 bool use_virtual_time; 460 bool use_virtual_time;
459 bool is_audio_playing; 461 bool is_audio_playing;
460 std::set<WebViewSchedulerImpl*> web_view_schedulers; // Not owned. 462 std::set<WebViewSchedulerImpl*> web_view_schedulers; // Not owned.
461 RAILModeObserver* rail_mode_observer; // Not owned. 463 RAILModeObserver* rail_mode_observer; // Not owned.
464 WakeupBudgetPool* wake_up_budget_pool; // Not owned.
462 }; 465 };
463 466
464 struct AnyThread { 467 struct AnyThread {
465 AnyThread(); 468 AnyThread();
466 ~AnyThread(); 469 ~AnyThread();
467 470
468 base::TimeTicks last_idle_period_end_time; 471 base::TimeTicks last_idle_period_end_time;
469 base::TimeTicks fling_compositor_escalation_deadline; 472 base::TimeTicks fling_compositor_escalation_deadline;
470 UserModel user_model; 473 UserModel user_model;
471 bool awaiting_touch_start_response; 474 bool awaiting_touch_start_response;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 534
532 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; 535 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_;
533 536
534 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); 537 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl);
535 }; 538 };
536 539
537 } // namespace scheduler 540 } // namespace scheduler
538 } // namespace blink 541 } // namespace blink
539 542
540 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_IMPL_H_ 543 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698