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

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

Issue 2909293002: Allow tasks scheduled for the instant virtual time budges expires to run (Closed)
Patch Set: Changes for altimin@ Created 3 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
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 void OnNavigationStarted() override; 110 void OnNavigationStarted() override;
111 bool IsHighPriorityWorkAnticipated() override; 111 bool IsHighPriorityWorkAnticipated() override;
112 bool ShouldYieldForHighPriorityWork() override; 112 bool ShouldYieldForHighPriorityWork() override;
113 bool CanExceedIdleDeadlineIfRequired() const override; 113 bool CanExceedIdleDeadlineIfRequired() const override;
114 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; 114 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override;
115 void RemoveTaskObserver( 115 void RemoveTaskObserver(
116 base::MessageLoop::TaskObserver* task_observer) override; 116 base::MessageLoop::TaskObserver* task_observer) override;
117 void Shutdown() override; 117 void Shutdown() override;
118 void SuspendTimerQueue() override; 118 void SuspendTimerQueue() override;
119 void ResumeTimerQueue() override; 119 void ResumeTimerQueue() override;
120 void VirtualTimePaused() override;
121 void VirtualTimeResumed() override;
120 void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) override; 122 void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) override;
121 void SetTopLevelBlameContext( 123 void SetTopLevelBlameContext(
122 base::trace_event::BlameContext* blame_context) override; 124 base::trace_event::BlameContext* blame_context) override;
123 void SetRAILModeObserver(RAILModeObserver* observer) override; 125 void SetRAILModeObserver(RAILModeObserver* observer) override;
124 bool MainThreadSeemsUnresponsive( 126 bool MainThreadSeemsUnresponsive(
125 base::TimeDelta main_thread_responsiveness_threshold) override; 127 base::TimeDelta main_thread_responsiveness_threshold) override;
126 128
127 // RenderWidgetSignals::Observer implementation: 129 // RenderWidgetSignals::Observer implementation:
128 void SetAllRenderWidgetsHidden(bool hidden) override; 130 void SetAllRenderWidgetsHidden(bool hidden) override;
129 void SetHasVisibleRenderWidgetWithTouchHandler( 131 void SetHasVisibleRenderWidgetWithTouchHandler(
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 bool timer_tasks_seem_expensive; 488 bool timer_tasks_seem_expensive;
487 bool touchstart_expected_soon; 489 bool touchstart_expected_soon;
488 bool have_seen_a_begin_main_frame; 490 bool have_seen_a_begin_main_frame;
489 bool have_reported_blocking_intervention_in_current_policy; 491 bool have_reported_blocking_intervention_in_current_policy;
490 bool have_reported_blocking_intervention_since_navigation; 492 bool have_reported_blocking_intervention_since_navigation;
491 bool has_visible_render_widget_with_touch_handler; 493 bool has_visible_render_widget_with_touch_handler;
492 bool begin_frame_not_expected_soon; 494 bool begin_frame_not_expected_soon;
493 bool in_idle_period_for_testing; 495 bool in_idle_period_for_testing;
494 bool use_virtual_time; 496 bool use_virtual_time;
495 bool is_audio_playing; 497 bool is_audio_playing;
498 bool virtual_time_paused;
496 std::set<WebViewSchedulerImpl*> web_view_schedulers; // Not owned. 499 std::set<WebViewSchedulerImpl*> web_view_schedulers; // Not owned.
497 RAILModeObserver* rail_mode_observer; // Not owned. 500 RAILModeObserver* rail_mode_observer; // Not owned.
498 WakeUpBudgetPool* wake_up_budget_pool; // Not owned. 501 WakeUpBudgetPool* wake_up_budget_pool; // Not owned.
499 std::array<base::TimeDelta, 502 std::array<base::TimeDelta,
500 static_cast<size_t>(TaskQueue::QueueType::COUNT)> 503 static_cast<size_t>(TaskQueue::QueueType::COUNT)>
501 unreported_task_duration; 504 unreported_task_duration;
502 base::HistogramBase* task_duration_per_queue_type_histogram; 505 base::HistogramBase* task_duration_per_queue_type_histogram;
503 }; 506 };
504 507
505 struct AnyThread { 508 struct AnyThread {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 575
573 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; 576 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_;
574 577
575 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); 578 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl);
576 }; 579 };
577 580
578 } // namespace scheduler 581 } // namespace scheduler
579 } // namespace blink 582 } // namespace blink
580 583
581 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_IMPL_H_ 584 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698