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

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

Issue 2483843002: Revert of [scheduler] Teach scheduler about audio state (Closed)
Patch Set: Rebase Created 4 years, 1 month 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
Index: third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h b/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h
index bc0c3d61673941d281a437980f1da94c676af044..66cdc886167e622381ad39b1fad9a09e65dfa85c 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h
@@ -159,10 +159,6 @@ class BLINK_PLATFORM_EXPORT RendererSchedulerImpl
// Snapshots this RendererScheduler for tracing.
void CreateTraceEventObjectSnapshot() const;
- // Called when one of associated WebView schedulers has changed audio
- // state.
- void OnAudioStateChanged();
-
// Test helpers.
SchedulerHelper* GetSchedulerHelperForTesting();
TaskCostEstimator* GetLoadingTaskCostEstimatorForTesting();
@@ -182,8 +178,6 @@ class BLINK_PLATFORM_EXPORT RendererSchedulerImpl
AutoAdvancingVirtualTimeDomain* GetVirtualTimeDomain();
- TimeDomain* GetActiveTimeDomain();
-
TaskQueueThrottler* task_queue_throttler() const {
return task_queue_throttler_.get();
}
@@ -223,15 +217,13 @@ class BLINK_PLATFORM_EXPORT RendererSchedulerImpl
TaskQueuePolicy timer_queue_policy;
TaskQueuePolicy default_queue_policy;
v8::RAILMode rail_mode = v8::PERFORMANCE_ANIMATION;
- bool should_disable_throttling = false;
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 &&
- rail_mode == other.rail_mode &&
- should_disable_throttling == other.should_disable_throttling;
+ rail_mode == other.rail_mode;
}
};
@@ -355,8 +347,6 @@ class BLINK_PLATFORM_EXPORT RendererSchedulerImpl
static const char* ExpensiveTaskPolicyToString(
ExpensiveTaskPolicy expensive_task_policy);
- bool ShouldDisableThrottlingBecauseOfAudio(base::TimeTicks now);
-
SchedulerHelper helper_;
IdleHelper idle_helper_;
std::unique_ptr<TaskQueueThrottler> task_queue_throttler_;
@@ -400,7 +390,6 @@ class BLINK_PLATFORM_EXPORT RendererSchedulerImpl
base::TimeTicks estimated_next_frame_begin;
base::TimeDelta compositor_frame_interval;
base::TimeDelta longest_jank_free_task_duration;
- base::Optional<base::TimeTicks> last_audio_state_change;
int timer_queue_suspend_count; // TIMER_TASK_QUEUE suspended if non-zero.
int navigation_task_expected_count;
ExpensiveTaskPolicy expensive_task_policy;
@@ -420,7 +409,6 @@ class BLINK_PLATFORM_EXPORT RendererSchedulerImpl
bool begin_frame_not_expected_soon;
bool in_idle_period_for_testing;
bool use_virtual_time;
- bool is_audio_playing;
std::set<WebViewSchedulerImpl*> web_view_schedulers; // Not owned.
RAILModeObserver* rail_mode_observer; // Not owned.
};
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698