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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2471153002: [scheduler] Use Finch to control background throttling. (Closed)
Patch Set: Fix test and address comments 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: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index ebfac09d0234e261dfa0541562a73189c46c27e2..829e8452f269d4992f946f6bbabde57af893b003 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1095,6 +1095,15 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
prefs.default_minimum_page_scale_factor,
prefs.default_maximum_page_scale_factor);
+ settings->setExpensiveBackgroundThrottlingCPUBudget(
+ prefs.expensive_background_throttling_cpu_budget);
+ settings->setExpensiveBackgroundThrottlingInitialBudget(
+ prefs.expensive_background_throttling_initial_budget);
+ settings->setExpensiveBackgroundThrottlingMaxBudget(
+ prefs.expensive_background_throttling_max_budget);
+ settings->setExpensiveBackgroundThrottlingMaxDelay(
+ prefs.expensive_background_throttling_max_delay);
+
#if defined(OS_ANDROID)
settings->setAllowCustomScrollbarInMainFrame(false);
settings->setTextAutosizingEnabled(prefs.text_autosizing_enabled);
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | third_party/WebKit/Source/platform/scheduler/child/web_scheduler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698